Skip to content

Commit 5f8d199

Browse files
Moving trigger to separate job
1 parent 5060069 commit 5f8d199

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/docbuild-and-upload.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,23 @@ jobs:
8888
path: web/build
8989
retention-days: 14
9090

91+
outputs:
92+
run_id: ${{ github.run_id }} # I assume run_id is different in different jobs, need to check
93+
94+
95+
preview_website:
96+
name: Preview website and docs
97+
runs-on: ubuntu-22.04
98+
needs: web_and_docs
99+
steps:
100+
91101
- name: Trigger web/doc preview
92102
run: |
93103
curl -X POST https://pandas.pydata.org/preview/submit/$RUN_ID/$PR_ID/
94104
echo "Preview docs for this PR at: https://pandas.pydata.org/preview/$PR_ID/"
105+
echo "This run id: $THIS_RUN_ID, other job run id: $RUN_ID"
95106
env:
96-
RUN_ID: ${{ github.run_id }}
107+
THIS_RUN_ID: ${{ github.run_id }}
108+
RUN_ID: ${{ needs.web_and_docs.outputs.run_id }}
97109
PR_ID: ${{ github.event.pull_request.number }}
98110
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)