File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ jobs:
1616 steps :
1717 - uses : actions/checkout@v5
1818 - uses : actions/github-script@v8
19+ id : find-new-prs
1920 with :
2021 script : |
21- const prs = await github.rest.pulls.list({
22+ const { data: prs } = await github.rest.pulls.list({
2223 owner: 'bazelbuild',
2324 repo: 'bazel',
2425 since: new Date(Date.now() - 20 * 60 * 1000).toISOString(),
2526 });
26-
27-
2827 core.setOutput("pull_requests", JSON.stringify(prs.map(pr => ({
2928 number: pr.number,
3029 head_sha: pr.head.sha,
3130 }))));
3231 # TODO: run another step for each output.
3332 # it just calls the gh command to make a new branch on our repo that points the upstream git submodule to the PR's HEAD commit
3433 # and then triggers the run-codegen workflow on that new branch to generate the docs.
34+ - run : echo ${{ steps.find-new-prs.outputs.pull_requests }}
You can’t perform that action at this time.
0 commit comments