Skip to content

Commit 2d7e217

Browse files
Update token variable names in workflow file
1 parent ca51ecd commit 2d7e217

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/cherry-pick-commit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
cherry-pick:
2727
runs-on: ubuntu-latest
2828

29-
# Prefer UPDATE_PAT if present; else fall back to GITHUB_TOKEN
29+
# Prefer UPDATE_PROJECT_V2_PAT if present; else fall back to GITHUB_TOKEN
3030
env:
31-
GH_TOKEN_EFFECTIVE: ${{ secrets.UPDATE_PAT || secrets.GITHUB_TOKEN }}
31+
GH_TOKEN_EFFECTIVE: ${{ secrets.UPDATE_PROJECT_V2_PAT || secrets.GITHUB_TOKEN }}
3232

3333
steps:
3434
- name: Ensure token exists
3535
run: |
3636
if [ -z "${GH_TOKEN_EFFECTIVE}" ]; then
37-
echo "::error::No UPDATE_PAT or GITHUB_TOKEN available. Add UPDATE_PAT (PAT with repo scope) to Secrets, or enable Read & Write and 'Allow Actions to create PRs' for GITHUB_TOKEN."
37+
echo "::error::No UPDATE_PROJECT_V2_PAT or GITHUB_TOKEN available. Add UPDATE_PROJECT_V2_PAT (PAT with repo scope) to Secrets, or enable Read & Write and 'Allow Actions to create PRs' for GITHUB_TOKEN."
3838
exit 1
3939
fi
4040
@@ -156,6 +156,6 @@ jobs:
156156
--head "${BRANCH_NAME}"; then
157157
echo "✅ Successfully created PR for cherry-pick of ${COMMIT_ID} to ${TARGET_BRANCH}"
158158
else
159-
echo "::error::PR creation failed. If using GITHUB_TOKEN, ensure 'Allow GitHub Actions to create and approve pull requests' is enabled at Org/Repo (or supply UPDATE_PAT)."
159+
echo "::error::PR creation failed. If using GITHUB_TOKEN, ensure 'Allow GitHub Actions to create and approve pull requests' is enabled at Org/Repo (or supply UPDATE_PROJECT_V2_PAT )."
160160
exit 1
161161
fi

0 commit comments

Comments
 (0)