File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 36
36
key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
37
37
38
38
- name : Restore cached Linkcheck
39
- if : github.event_name ! = 'schedule'
39
+ if : github.event_name = = 'schedule'
40
40
id : cache-linkcheck-restore
41
41
uses : actions/cache/restore@v4
42
42
with :
63
63
64
64
- name : Save cached Linkcheck
65
65
id : cache-linkcheck-save
66
- if : github.event_name != 'schedule'
66
+ if : github.event_name == 'schedule'
67
67
uses : actions/cache/save@v4
68
68
with :
69
69
path : book/linkcheck/cache.json
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set_github_token() {
8
8
}
9
9
10
10
# https://docs.github.com/en/actions/reference/environment-variables
11
- if [ true ] ; then # running in scheduled job
11
+ if [ " $GITHUB_EVENT_NAME " = " schedule " ] ; then # running in scheduled job
12
12
FLAGS=" "
13
13
USE_TOKEN=1
14
14
You can’t perform that action at this time.
0 commit comments