Skip to content

Commit 3ef1aba

Browse files
authored
chore: use PAT token in RC workflow (#7866)
## Problem The release candidate workflow was failing with "protected branch update failed" error because the default `GITHUB_TOKEN ` did not exist. ## Solution Updated the workflow to use `RELEASE_CANDIDATE_BRANCH_CREATION_PAT` instead of `GITHUB_TOKEN` in the checkout step. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 7567ec8 commit 3ef1aba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/setup-release-candidate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- uses: actions/checkout@v4
3131
with:
3232
ref: ${{ inputs.commitId }}
33-
token: ${{ secrets.GITHUB_TOKEN }}
33+
token: ${{ secrets.RELEASE_CANDIDATE_BRANCH_CREATION_PAT }}
3434
persist-credentials: true
3535

3636
- name: Setup Node.js
@@ -102,7 +102,7 @@ jobs:
102102
103103
# Commit version changes
104104
git add packages/toolkit/package.json packages/amazonq/package.json package-lock.json
105-
git commit -m "Bump versions: toolkit=$TOOLKIT_VERSION, amazonq=$AMAZONQ_VERSION"
105+
git commit -m "chore: bump versions - toolkit=$TOOLKIT_VERSION, amazonq=$AMAZONQ_VERSION"
106106
107107
# Push RC branch
108108
git push origin $BRANCH_NAME

0 commit comments

Comments
 (0)