chore: fix GH_TOKEN secret references in release workflow

This commit is contained in:
David Parry 2026-03-24 13:50:25 +11:00
parent 2944fccdeb
commit bcf4dfc29b
No known key found for this signature in database

View File

@ -30,12 +30,11 @@ jobs:
uses: cycjimmy/semantic-release-action@v3 uses: cycjimmy/semantic-release-action@v3
id: semver id: semver
env: env:
GITHUB_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_NAME: cosmistack-bot GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: dev@cosmistack.com GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
GIT_COMMITTER_NAME: cosmistack-bot GIT_COMMITTER_NAME: ${{ github.actor }}
GIT_COMMITTER_EMAIL: dev@cosmistack.com GIT_COMMITTER_EMAIL: ${{ github.actor }}@users.noreply.github.com
- name: Finalize release notes - name: Finalize release notes
# Skip for pre-releases (versions containing a hyphen, e.g. 1.27.0-rc.1) # Skip for pre-releases (versions containing a hyphen, e.g. 1.27.0-rc.1)
if: | if: |
@ -65,7 +64,7 @@ jobs:
run: | run: |
git config user.name "cosmistack-bot" git config user.name "cosmistack-bot"
git config user.email "dev@cosmistack.com" git config user.email "dev@cosmistack.com"
git remote set-url origin https://x-access-token:${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}@github.com/${{ github.repository }}.git git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git
git add admin/docs/release-notes.md git add admin/docs/release-notes.md
git commit -m "docs(release): finalize v${{ steps.semver.outputs.new_release_version }} release notes [skip ci]" git commit -m "docs(release): finalize v${{ steps.semver.outputs.new_release_version }} release notes [skip ci]"
git push origin main git push origin main
@ -76,7 +75,7 @@ jobs:
steps.finalize-notes.outputs.has_notes == 'true' && steps.finalize-notes.outputs.has_notes == 'true' &&
!contains(steps.semver.outputs.new_release_version, '-') !contains(steps.semver.outputs.new_release_version, '-')
env: env:
GH_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: | run: |
gh release edit "v${{ steps.semver.outputs.new_release_version }}" \ gh release edit "v${{ steps.semver.outputs.new_release_version }}" \
--notes-file admin/docs/release-notes.md.section --notes-file admin/docs/release-notes.md.section