From 5bd37cc64a473a493f01072e121901f51ddbca39 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 16 Sep 2024 10:12:10 +0100 Subject: [PATCH] ci: move to v5 of delete artifact action Support tokenless deletion --- .github/actions/package/action.yml | 6 +----- .github/workflows/build.yml | 4 ---- .github/workflows/release.yml | 6 ------ 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/.github/actions/package/action.yml b/.github/actions/package/action.yml index a0f375cda14..2b94b40f004 100644 --- a/.github/actions/package/action.yml +++ b/.github/actions/package/action.yml @@ -11,9 +11,6 @@ inputs: vtag: description: The version tag to be used for the SDK required: true - token: - description: The token used to remove artifacts - required: true runs: using: composite @@ -101,9 +98,8 @@ runs: rm -f ~/.gradle/caches/modules-2/gc.properties shell: bash - - uses: geekyeggo/delete-artifact@v4 + - uses: geekyeggo/delete-artifact@v5 with: - token: ${{ env.token }} name: | android-build ios-build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 178d17a9ea9..226d251a337 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ on: - actions_tests pull_request: -permissions: - actions: write - jobs: android: runs-on: ubuntu-20.04 @@ -89,4 +86,3 @@ jobs: node-version: '20.x' java-version: '11' vtag: ${{ env.vtag }} - token: ${{ github.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdeccd45c8a..f56a870d464 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,9 +23,6 @@ on: - Beta3 - Beta4 -permissions: - actions: write - jobs: validate: runs-on: ubuntu-latest @@ -105,8 +102,6 @@ jobs: package: runs-on: macos-12 name: Package - permissions: - actions: write env: SDK_BUILD_CACHE_DIR: ${{ github.workspace }}/.native-modules DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer @@ -121,7 +116,6 @@ jobs: - name: Package uses: ./.github/actions/package with: - token: ${{ github.token }} node-version: '20.x' java-version: '11' vtag: ${{ env.vtag }}