diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f603b7d9..241bdd15 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,13 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 cache: 'gradle' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build with Gradle run: ./gradlew build --no-daemon env: diff --git a/.github/workflows/crowdin-download.yaml b/.github/workflows/crowdin-download.yaml index 8270df11..519f7f03 100644 --- a/.github/workflows/crowdin-download.yaml +++ b/.github/workflows/crowdin-download.yaml @@ -10,20 +10,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - distribution: "adopt" - java-version: "17" - - name: Make gradlew executable - run: "sudo chmod +x gradlew" + distribution: 'temurin' + java-version: 17 + cache: 'gradle' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build i18n application run: "./gradlew i18n:build" - name: Generate translation source run: "java -jar i18n/build/libs/i18n-all.jar" - name: Download translations from Crowdin - uses: crowdin/github-action@v1 + uses: crowdin/github-action@v2 with: upload_sources: false upload_translations: false diff --git a/.github/workflows/crowdin-upload.yaml b/.github/workflows/crowdin-upload.yaml index f35cabb0..8bee85bb 100644 --- a/.github/workflows/crowdin-upload.yaml +++ b/.github/workflows/crowdin-upload.yaml @@ -9,20 +9,21 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - distribution: "adopt" - java-version: "17" - - name: Make gradlew executable - run: "sudo chmod +x gradlew" + distribution: 'temurin' + java-version: 17 + cache: 'gradle' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 - name: Build i18n application run: "./gradlew i18n:build" - name: Generate translation source run: "java -jar i18n/build/libs/i18n-all.jar" - name: Upload source to Crowdin - uses: crowdin/github-action@v1 + uses: crowdin/github-action@v2 with: upload_sources: true upload_translations: false diff --git a/.github/workflows/gradle-wrapper-validation.yaml b/.github/workflows/gradle-wrapper-validation.yaml index 7d4ca194..9cfe64da 100644 --- a/.github/workflows/gradle-wrapper-validation.yaml +++ b/.github/workflows/gradle-wrapper-validation.yaml @@ -1,4 +1,5 @@ -name: "Validate Gradle Wrapper" +name: Validate Gradle Wrapper + on: push: paths: ["gradle/wrapper/**"] @@ -10,5 +11,5 @@ jobs: name: "Validation" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: gradle/wrapper-validation-action@v1 + - uses: actions/checkout@v4 + - uses: gradle/actions/wrapper-validation@v3 diff --git a/.github/workflows/pr-dependency-review.yaml b/.github/workflows/pr-dependency-review.yaml index f2605b7a..85c13632 100644 --- a/.github/workflows/pr-dependency-review.yaml +++ b/.github/workflows/pr-dependency-review.yaml @@ -1,4 +1,5 @@ -name: 'Dependency Review' +name: Dependency Review + on: [pull_request] permissions: @@ -9,6 +10,6 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: 'Dependency Review' - uses: actions/dependency-review-action@v1 + uses: actions/dependency-review-action@v4