Skip to content

Commit a7346c3

Browse files
committed
fix
1 parent 64a141d commit a7346c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/preview-bazel-docs-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)