diff --git a/.github/workflows/preview-bazel-docs-pr.yml b/.github/workflows/preview-bazel-docs-pr.yml index d29c22f..fc2287c 100644 --- a/.github/workflows/preview-bazel-docs-pr.yml +++ b/.github/workflows/preview-bazel-docs-pr.yml @@ -16,15 +16,14 @@ jobs: steps: - uses: actions/checkout@v5 - uses: actions/github-script@v8 + id: find-new-prs with: script: | - const prs = await github.rest.pulls.list({ + const { data: prs } = await github.rest.pulls.list({ owner: 'bazelbuild', repo: 'bazel', since: new Date(Date.now() - 20 * 60 * 1000).toISOString(), }); - - core.setOutput("pull_requests", JSON.stringify(prs.map(pr => ({ number: pr.number, head_sha: pr.head.sha, @@ -32,3 +31,4 @@ jobs: # TODO: run another step for each output. # 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 # and then triggers the run-codegen workflow on that new branch to generate the docs. + - run: echo ${{ steps.find-new-prs.outputs.pull_requests }} diff --git a/upstream b/upstream index b1630ee..9b800ba 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit b1630eedbe79a7487a79dc4b7f75d27b22e3c0ab +Subproject commit 9b800bae4c8cd970ed04d710b9c0613a9d091b16