From 35df354c34f1b4a1787e91e8fdce266e125fe2c3 Mon Sep 17 00:00:00 2001 From: Manel Martos Date: Thu, 11 Apr 2024 16:22:01 +0200 Subject: [PATCH] Upgrade old github actions --- .github/workflows/build.yml | 50 ++++++++++++++--------------- .github/workflows/documentation.yml | 10 +++--- .github/workflows/release.yml | 8 ++--- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bcdbdd6cd..b2f77f380 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,13 +16,13 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - name: Build @@ -46,12 +46,12 @@ jobs: -Psigning.password=${{ secrets.SIGNING_PASSWORD }} -Psonatype.username=${{ secrets.SONATYPE_USERNAME }} -Psonatype.password=${{ secrets.SONATYPE_PASSWORD }} - - uses: github/codeql-action/upload-sarif@v2 + - uses: github/codeql-action/upload-sarif@v3 if: success() || failure() with: sarif_file: build/lint-merged.sarif category: lint - - uses: github/codeql-action/upload-sarif@v2 + - uses: github/codeql-action/upload-sarif@v3 if: success() || failure() with: sarif_file: build/detekt-merged.sarif @@ -69,13 +69,13 @@ jobs: name: Publication verification runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - name: Check publication setup @@ -93,17 +93,17 @@ jobs: runs-on: macOS-latest timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - name: Setup Android SDK - uses: android-actions/setup-android@v2 + uses: android-actions/setup-android@v3 - name: Package Debug Android Test # Flags from https://github.com/android/nowinandroid/blob/main/.github/workflows/Build.yaml run: ./gradlew packageDebugAndroidTest @@ -131,17 +131,17 @@ jobs: runs-on: macOS-latest timeout-minutes: 60 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - name: Setup Android SDK - uses: android-actions/setup-android@v2 + uses: android-actions/setup-android@v3 - name: Screenshot tests # Flags from https://github.com/android/nowinandroid/blob/main/.github/workflows/Build.yaml run: > @@ -165,18 +165,18 @@ jobs: name: Check documentation runs-on: macOS-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - name: Generate distributions run: ./gradlew jsBrowserDistributionMkdocs --continue - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - run: pip install mkdocs-material diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index cbfd15320..376085a32 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -11,16 +11,16 @@ jobs: name: Deploy runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.x' - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 with: cache-read-only: ${{ env.MAIN_BRANCH != 'true' }} - run: pip install mkdocs-material diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22314e3e2..bad5eb423 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,13 @@ jobs: name: Publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - - uses: gradle/wrapper-validation-action@v1 - - uses: gradle/gradle-build-action@v2 + - uses: gradle/wrapper-validation-action@v2 + - uses: gradle/gradle-build-action@v3 env: SIGNING_KEY: ${{ secrets.SIGNING_KEY }} with: