Skip to content

Commit d82ea68

Browse files
committed
take json from PR subdir if it's a PR
1 parent 6e5681c commit d82ea68

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/refresh_website.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ jobs:
3232

3333
- name: Download results to web/src/data
3434
run: |
35-
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/adtests.json
36-
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/manifest.json
37-
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/model_definitions.json
35+
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/${PR}adtests.json
36+
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/${PR}manifest.json
37+
curl -O https://raw.githubusercontent.com/TuringLang/ADTests/refs/heads/gh-pages/${PR}model_definitions.json
3838
working-directory: web/src/data
39+
env:
40+
PR: ${{ github.event_name == 'pull_request' && 'pr/' || '' }}
3941

4042
# This isn't needed to build the website, it's just there so that the
4143
# JSON is easily accessible on the gh-pages branch

0 commit comments

Comments
 (0)