Skip to content

ci: replace RELEASE_PAT with GITHUB_TOKEN in bump workflow, add concurrency and dispatch-based release trigger#9

Merged
MacBuchi merged 2 commits into
Mainfrom
copilot/review-bump-release-workflow
Mar 5, 2026
Merged

ci: replace RELEASE_PAT with GITHUB_TOKEN in bump workflow, add concurrency and dispatch-based release trigger#9
MacBuchi merged 2 commits into
Mainfrom
copilot/review-bump-release-workflow

Conversation

Copilot AI commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

bump.yml depended on secrets.RELEASE_PAT to push tags and trigger release.yml. A missing or expired PAT silently breaks the entire bump→release pipeline.

Changes

bump.yml

  • Remove PAT dependency — all steps now use the built-in github.token (contents: write + actions: write permissions)
  • Replace tag-re-push retrigger with gh workflow runGITHUB_TOKEN tag pushes don't fire push: tags workflow triggers by design; workflow_dispatch API calls do
    - name: Trigger Release workflow
      if: steps.bump.outputs.tag != ''
      env:
        GH_TOKEN: ${{ github.token }}
      run: |
        gh workflow run release.yml \
          --repo "${{ github.repository }}" \
          --ref Main \
          --field "tag=${{ steps.bump.outputs.tag }}"
  • Capture new tag as step outputid: bump + $GITHUB_OUTPUT feeds the dispatch step in both the "new bump" and "retrigger failed release" branches
  • Add concurrency group (cancel-in-progress: false) — serialises runs when multiple PRs merge in quick succession; a queued run correctly finds nothing to do after the preceding run has already bumped

release.yml

No changes — workflow_dispatch with inputs.tag was already present and handles checkout at the specified tag.

AGENTS.md

Updated CI/CD pipeline docs to reflect no-PAT approach, concurrency protection, and dispatch-based trigger mechanism.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…rrency and workflow_dispatch trigger

Co-authored-by: MacBuchi <63749065+MacBuchi@users.noreply.github.com>
Copilot AI changed the title [WIP] Review Bump/Release workflow and PAT_Token configuration ci: replace RELEASE_PAT with GITHUB_TOKEN in bump workflow, add concurrency and dispatch-based release trigger Mar 5, 2026
@MacBuchi
MacBuchi marked this pull request as ready for review March 5, 2026 22:41
@MacBuchi
MacBuchi merged commit e2798e6 into Main Mar 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants