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.
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2024-12-30 18:14:28 +08:00
parent c681b2473c
commit e65c5f5fa8

View File

@ -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