@@ -26,26 +26,28 @@ jobs:
26
26
update-citations :
27
27
runs-on : ubuntu-latest
28
28
timeout-minutes : 15
29
- if : github.event.action != 'closed'
30
29
31
30
steps :
32
31
- name : Debug dump
33
32
uses : crazy-max/ghaction-dump-context@v2
34
33
35
34
- name : Checkout branch contents
35
+ if : github.event.action != 'closed'
36
36
uses : actions/checkout@v4
37
37
with :
38
38
repository : ${{ github.event.pull_request.head.repo.full_name }}
39
39
ref : ${{ github.head_ref }}
40
40
41
41
- name : Setup Python
42
+ if : github.event.action != 'closed'
42
43
uses : actions/setup-python@v5
43
44
with :
44
45
python-version : " 3.11"
45
46
cache : " pip"
46
47
cache-dependency-path : " **/requirements.txt"
47
48
48
49
- name : Install Python packages
50
+ if : github.event.action != 'closed'
49
51
run : |
50
52
python -m pip install --upgrade --requirement ./_cite/requirements.txt
51
53
@@ -54,10 +56,12 @@ jobs:
54
56
uses : mxschmitt/action-tmate@v3
55
57
56
58
- name : Build updated citations
59
+ if : github.event.action != 'closed'
57
60
run : python _cite/cite.py
58
61
timeout-minutes : 15
59
62
60
63
- name : Check if citations changed
64
+ if : github.event.action != 'closed'
61
65
id : changed
62
66
uses : tj-actions/verify-changed-files@v18
63
67
with :
66
70
67
71
- name : Commit updated citations to branch
68
72
if : |
73
+ github.event.action != 'closed' &&
69
74
steps.changed.outputs.files_changed == 'true' &&
70
75
inputs.open-pr != true
71
76
uses : stefanzweifel/git-auto-commit-action@v5
74
79
75
80
- name : Open pull request with updated citations
76
81
if : |
82
+ github.event.action != 'closed' &&
77
83
steps.changed.outputs.files_changed == 'true' &&
78
84
inputs.open-pr == true
79
85
uses : peter-evans/create-pull-request@v6
84
90
To see a live preview of this PR, close (not merge) and reopen it.
85
91
86
92
outputs :
87
- changed : ${{ steps.changed.outputs.files_changed }}
93
+ changed : ${{ steps.changed.outputs.files_changed || false }}
0 commit comments