Skip to content

Commit 0a3af5f

Browse files
Use PAT_TOKEN for issue creation to trigger downstream workflows
Events created with GITHUB_TOKEN do not trigger other workflows. Switch to PAT_TOKEN so the issue creation fires the trigger-rebase-on-issue workflow. Signed-off-by: Roman Nikitenko <rnikiten@redhat.com> Made-with: Cursor
1 parent c774efe commit 0a3af5f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/check-upstream-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,12 @@ jobs:
7777
echo "exists=false" >> "$GITHUB_OUTPUT"
7878
fi
7979
80+
# Use PAT_TOKEN so the created issue triggers downstream workflows
81+
# (events from GITHUB_TOKEN don't trigger other workflows).
8082
- name: Create issue
8183
if: steps.check.outputs.new_release == 'true' && steps.existing.outputs.exists == 'false'
8284
env:
83-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
GH_TOKEN: ${{ secrets.PAT_TOKEN }}
8486
NEXT_BRANCH: ${{ steps.check.outputs.next_branch }}
8587
run: |
8688
VERSION=$(echo "$NEXT_BRANCH" | sed 's|release/||')

0 commit comments

Comments
 (0)