Skip to content

Commit f92add0

Browse files
make sure it runs on branch
1 parent 9d0a939 commit f92add0

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/website.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
build:
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- name: Checkout the same branch as the triggering workflow
24+
uses: actions/checkout@v4
25+
with:
26+
ref: ${{ github.event.workflow_run.head_branch }}
2427
- name: Setup Pages
2528
uses: actions/configure-pages@v4
2629
- name: Set up Python
@@ -40,18 +43,25 @@ jobs:
4043
run: |
4144
pip install -r requirements.txt
4245
43-
# Action Figures artifact
44-
- name: 'Download artifact'
45-
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
46-
uses: ./.github/actions/download-artifact
46+
# Download Figures artifact
47+
- name: Download Figures artifact
48+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
49+
uses: actions/download-artifact@v4
4750
with:
48-
name: 'Figures'
49-
# Action analysis data artifact
50-
- name: 'Download analysis data'
51-
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
52-
uses: ./.github/actions/download-artifact
51+
github-token: ${{ secrets.GITHUB_TOKEN }}
52+
run-id: ${{ github.event.workflow_run.id }}
53+
name: Figures
54+
path: Figures
55+
56+
# Download Data artifact
57+
- name: Download Data artifact
58+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
59+
uses: actions/download-artifact@v4
5360
with:
54-
name: 'Data'
61+
github-token: ${{ secrets.GITHUB_TOKEN }}
62+
run-id: ${{ github.event.workflow_run.id }}
63+
name: Data
64+
path: Data
5565

5666
- name: Debug artifact contents
5767
run: |

0 commit comments

Comments
 (0)