From 98d6542929b276606fe0644ffdf8c6cdfbb8d55b Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Tue, 17 Feb 2026 13:17:49 +0100 Subject: [PATCH] ci: Auto-run CI on toxgen PRs --- .github/workflows/update-tox.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-tox.yml b/.github/workflows/update-tox.yml index 914109eae8..7bab3135b3 100644 --- a/.github/workflows/update-tox.yml +++ b/.github/workflows/update-tox.yml @@ -42,7 +42,7 @@ jobs: run: | COMMIT_TITLE="ci: 🤖 Update test matrix with new releases" DATE=`date +%m/%d` - BRANCH_NAME="toxgen/update" + BRANCH_NAME="toxgen/update-$(date +%m-%d)" git checkout -B "$BRANCH_NAME" git add --all @@ -109,3 +109,18 @@ jobs: issue_number: pr.number, labels: ['Component: CI', 'Component: Tests'] }); + + // Close and reopen the PR to trigger CI + // (PRs created by GITHUB_TOKEN don't trigger workflows) + await github.rest.pulls.update({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: pr.number, + state: 'closed' + }); + await github.rest.pulls.update({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: pr.number, + state: 'open' + });