diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54150a3..6a0267a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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