From e65c5f5fa8fb74bf41d97c38c5da216922d114a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 18:14:28 +0800 Subject: [PATCH] chore: update GitHub Actions workflow to streamline release process - Removed explicit permissions and secrets from auto-tag.yml, inheriting them instead for improved security and simplicity. - Added a conditional check for the release job to only run on successful completion of the auto-tag job, enhancing workflow reliability. --- .github/workflows/auto-tag.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 409c8ca..1b65afc 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -49,9 +49,6 @@ jobs: release: needs: auto-tag + if: success() uses: ./.github/workflows/release.yml - permissions: write-all - secrets: - RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - PASSPHRASE: ${{ secrets.PASSPHRASE }} + secrets: inherit