Update actions

This commit is contained in:
Vankka 2024-06-22 11:12:13 +03:00
parent 6ebca2321d
commit 5ffc40b96f
No known key found for this signature in database
GPG Key ID: 62E48025ED4E7EBB
5 changed files with 29 additions and 23 deletions

View File

@ -10,13 +10,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up JDK 17 - name: Setup Java
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: 'temurin' distribution: 'temurin'
java-version: 17 java-version: 17
cache: 'gradle' cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build --no-daemon run: ./gradlew build --no-daemon
env: env:

View File

@ -10,20 +10,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: "adopt" distribution: 'temurin'
java-version: "17" java-version: 17
- name: Make gradlew executable cache: 'gradle'
run: "sudo chmod +x gradlew" - name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build i18n application - name: Build i18n application
run: "./gradlew i18n:build" run: "./gradlew i18n:build"
- name: Generate translation source - name: Generate translation source
run: "java -jar i18n/build/libs/i18n-all.jar" run: "java -jar i18n/build/libs/i18n-all.jar"
- name: Download translations from Crowdin - name: Download translations from Crowdin
uses: crowdin/github-action@v1 uses: crowdin/github-action@v2
with: with:
upload_sources: false upload_sources: false
upload_translations: false upload_translations: false

View File

@ -9,20 +9,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Java - name: Setup Java
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: "adopt" distribution: 'temurin'
java-version: "17" java-version: 17
- name: Make gradlew executable cache: 'gradle'
run: "sudo chmod +x gradlew" - name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build i18n application - name: Build i18n application
run: "./gradlew i18n:build" run: "./gradlew i18n:build"
- name: Generate translation source - name: Generate translation source
run: "java -jar i18n/build/libs/i18n-all.jar" run: "java -jar i18n/build/libs/i18n-all.jar"
- name: Upload source to Crowdin - name: Upload source to Crowdin
uses: crowdin/github-action@v1 uses: crowdin/github-action@v2
with: with:
upload_sources: true upload_sources: true
upload_translations: false upload_translations: false

View File

@ -1,4 +1,5 @@
name: "Validate Gradle Wrapper" name: Validate Gradle Wrapper
on: on:
push: push:
paths: ["gradle/wrapper/**"] paths: ["gradle/wrapper/**"]
@ -10,5 +11,5 @@ jobs:
name: "Validation" name: "Validation"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1 - uses: gradle/actions/wrapper-validation@v3

View File

@ -1,4 +1,5 @@
name: 'Dependency Review' name: Dependency Review
on: [pull_request] on: [pull_request]
permissions: permissions:
@ -9,6 +10,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: 'Checkout Repository' - name: 'Checkout Repository'
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: 'Dependency Review' - name: 'Dependency Review'
uses: actions/dependency-review-action@v1 uses: actions/dependency-review-action@v4