[llvm] [workflows] Use a custom token for creating backport PRs (PR #79501)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 13:14:19 PST 2024
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/79501
The CI tests don't get triggered if a PR is created by the builtin github token, so we need to use a custom token when creating a PR.
>From 20e9a85d15bacd11a0c78857b23d5c68e6885e2b Mon Sep 17 00:00:00 2001
From: Tom Stellard <tstellar at redhat.com>
Date: Thu, 25 Jan 2024 13:12:36 -0800
Subject: [PATCH] [workflows] Use a custom token for creating backport PRs
The CI tests don't get triggered if a PR is created by the
builtin github token, so we need to use a custom token when creating
a PR.
---
.github/workflows/issue-release-workflow.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 112ece40bac9c1a..33a1e89a729f6b1 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -61,7 +61,7 @@ jobs:
printf "%s" "$COMMENT_BODY" |
./llvm/utils/git/github-automation.py \
--repo "$GITHUB_REPOSITORY" \
- --token ${{ github.token }} \
+ --token "${{ secrets.RELEASE_WORKFLOW_PR_CREATE }}" \
release-workflow \
--branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
--issue-number ${{ github.event.issue.number }} \
More information about the llvm-commits
mailing list