mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
chore: fix GH_TOKEN secret references in release workflow
This commit is contained in:
parent
2944fccdeb
commit
bcf4dfc29b
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
|
|
@ -30,12 +30,11 @@ jobs:
|
|||
uses: cycjimmy/semantic-release-action@v3
|
||||
id: semver
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}
|
||||
GIT_AUTHOR_NAME: cosmistack-bot
|
||||
GIT_AUTHOR_EMAIL: dev@cosmistack.com
|
||||
GIT_COMMITTER_NAME: cosmistack-bot
|
||||
GIT_COMMITTER_EMAIL: dev@cosmistack.com
|
||||
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
GIT_AUTHOR_NAME: ${{ github.actor }}
|
||||
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
|
||||
GIT_COMMITTER_NAME: ${{ github.actor }}
|
||||
GIT_COMMITTER_EMAIL: ${{ github.actor }}@users.noreply.github.com
|
||||
- name: Finalize release notes
|
||||
# Skip for pre-releases (versions containing a hyphen, e.g. 1.27.0-rc.1)
|
||||
if: |
|
||||
|
|
@ -65,7 +64,7 @@ jobs:
|
|||
run: |
|
||||
git config user.name "cosmistack-bot"
|
||||
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 commit -m "docs(release): finalize v${{ steps.semver.outputs.new_release_version }} release notes [skip ci]"
|
||||
git push origin main
|
||||
|
|
@ -76,7 +75,7 @@ jobs:
|
|||
steps.finalize-notes.outputs.has_notes == 'true' &&
|
||||
!contains(steps.semver.outputs.new_release_version, '-')
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: |
|
||||
gh release edit "v${{ steps.semver.outputs.new_release_version }}" \
|
||||
--notes-file admin/docs/release-notes.md.section
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user