File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 99
1010 pull_request :
1111
12+ workflow_dispatch :
13+
1214concurrency :
1315 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1416 cancel-in-progress : true
Original file line number Diff line number Diff line change 1313 permissions :
1414 contents : write
1515 pull-requests : write
16+ actions : write
1617
1718 steps :
1819 - name : Checkout Repository
@@ -127,3 +128,12 @@ jobs:
127128 });
128129
129130 console.log(`Created PR #${pr.number}: ${pr.title}`);
131+
132+ // Run the CI workflow on the PR branch. Needed because GITHUB_TOKEN
133+ // doesn't trigger workflows, except for workflow_dispatch.
134+ await github.rest.actions.createWorkflowDispatch({
135+ owner: context.repo.owner,
136+ repo: context.repo.repo,
137+ workflow_id: 'ci.yml',
138+ ref: branchName,
139+ });
You can’t perform that action at this time.
0 commit comments