You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: Dispatch CI on PR branch # pushes done by GITHUB_TOKEN don't trigger workflows, so we have to restart the CI job manually, see https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow
45
+
if: steps.commit.outputs.pushed == 'true'
44
46
uses: actions/github-script@v7.0.1
45
47
with:
46
48
github-token: ${{ secrets.GITHUB_TOKEN }}
47
49
script: |
48
-
const run = context.payload.workflow_run;
49
-
const pr = run.pull_requests[0];
50
+
const pr = context.payload.pull_request;
50
51
if (!pr) {
51
-
throw new Error("No pull request linked to this workflow_run event; aborting dispatch.");
52
+
throw new Error("No pull_request found in payload; aborting dispatch.");
0 commit comments