Skip to content

Commit 394e021

Browse files
authored
Modify deploy.yml for workflow dispatch and input usage
Enable workflow dispatch with scholar_id input and update the publications file step to use the input value.
1 parent 69a6d2f commit 394e021

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Update Publications
22

33
on:
4-
push:
5-
branches: [ gh-pages ]
4+
# push:
5+
# branches: [ gh-pages ]
66
workflow_dispatch:
7+
inputs:
8+
scholar_id:
9+
required: true
10+
default: "Xf3M93cAAAAJ"
711
schedule:
812
- cron: "0 7 * * 0" # Sundays 07:00 UTC
913

@@ -38,9 +42,9 @@ jobs:
3842
run: |
3943
PYTHONPATH=. python scripts/migrate_files.py
4044
41-
# - name: Update publications file
42-
# run: |
43-
# PYTHONPATH=. python scripts/update_pubs.py --scholar_id Xf3M93cAAAAJ
45+
- name: Update publications file
46+
run: |
47+
PYTHONPATH=. python scripts/update_pubs.py --scholar_id "${{ inputs.scholar_id }}"
4448
4549
- name: Create publications.bib
4650
run: |

0 commit comments

Comments
 (0)