From 9dafc4a0f59893384b16559f4667dba1e20a33a5 Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Wed, 27 Nov 2024 21:52:27 -0800 Subject: [PATCH] fix(ci): update workflow actions --- .github/workflows/build.yml | 10 +++++++--- .github/workflows/crowdin.yml | 4 +++- .github/workflows/release.yml | 3 ++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f853a8..849fba3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,11 +9,14 @@ on: - '*' workflow_dispatch: +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: set up JDK 17 uses: actions/setup-java@v2 @@ -23,11 +26,12 @@ jobs: cache: 'gradle' - name: Build project with Gradle - run: chmod +x ./gradlew && ./gradlew app:assembleDebug + run: chmod +x ./gradlew && ./gradlew :app:assembleDebug - name: Upload apk as artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: app + if-no-files-found: error path: | app/build/outputs/apk/debug/app-debug.apk diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 250e209..79ee0dc 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -16,7 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + persist-credentials: true - name: Crowdin uses: crowdin/github-action@1.4.11 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 390fddb..a22bb0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,8 +11,9 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: + persist-credentials: true ref: release path: src