File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 3636 key : ${{ runner.os }}-${{ env.MDBOOK_VERSION }}--${{ env.MDBOOK_LINKCHECK2_VERSION }}--${{ env.MDBOOK_TOC_VERSION }}--${{ env.MDBOOK_MERMAID_VERSION }}
3737
3838 - name : Restore cached Linkcheck
39- if : github.event_name ! = 'schedule'
39+ if : github.event_name = = 'schedule'
4040 id : cache-linkcheck-restore
4141 uses : actions/cache/restore@v4
4242 with :
6363
6464 - name : Save cached Linkcheck
6565 id : cache-linkcheck-save
66- if : github.event_name != 'schedule'
66+ if : github.event_name == 'schedule'
6767 uses : actions/cache/save@v4
6868 with :
6969 path : book/linkcheck/cache.json
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set_github_token() {
88}
99
1010# 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
1212 FLAGS=" "
1313 USE_TOKEN=1
1414
You can’t perform that action at this time.
0 commit comments