Skip to content

Commit 814133c

Browse files
committed
Add comment to workflow file
1 parent 47c032c commit 814133c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/backport.yml

+7
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ jobs:
4848
4949
git checkout -b $branch
5050
git cherry-pick $commit
51+
52+
# note this push will fail if the backport contains any workflow files
53+
# because secrets.GITHUB_TOKEN doesn't have this permission
54+
# supporting this would require another access token with content write
55+
# and workflow write permissions
56+
# so for now at least PRs that update workflow files need to be backported manually
5157
git push --set-upstream origin $branch
58+
5259
gh pr create --title "[$GITHUB_REF_NAME] $title" \
5360
--body "Clean cherry-pick of #$NUMBER to the \`$GITHUB_REF_NAME\` branch." \
5461
--base $GITHUB_REF_NAME

0 commit comments

Comments
 (0)