ci: trigger release workflow after windows definitions auto-merge

This commit is contained in:
Carlos Polop
2026-06-05 00:16:31 +02:00
parent e23cc3b749
commit c7f41f985c
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ jobs:
- name: Merge trusted bot PR
if: ${{ steps.bot_pr.outputs.should_merge == 'true' }}
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.CHACK_AGENT_FIXER_TOKEN || github.token }}
PR_NUMBER: ${{ steps.bot_pr.outputs.pr_number }}
COMMIT_TITLE: ${{ steps.bot_pr.outputs.title }}
run: |
@@ -39,6 +39,7 @@ jobs:
- name: Create validated update pull request
env:
GH_TOKEN: ${{ github.token }}
MERGE_TOKEN: ${{ secrets.CHACK_AGENT_FIXER_TOKEN || github.token }}
run: |
title="chore(winpeas): update windows version vulnerability definitions"
branch="bot/update-windows-version-definitions"
@@ -76,7 +77,7 @@ jobs:
gh workflow run PR-tests.yml --ref "$branch"
if gh pr merge "$pr_number" --squash --auto --subject "$title"; then
if GH_TOKEN="$MERGE_TOKEN" gh pr merge "$pr_number" --squash --auto --subject "$title"; then
echo "Auto-merge enabled for PR #$pr_number."
else
echo "Could not enable GitHub auto-merge for PR #$pr_number; the PR-tests workflow_run merge job will still merge it after tests pass."