Skip to content

Commit df0a760

Browse files
committed
Restore
1 parent 456c793 commit df0a760

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
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:
@@ -63,7 +63,7 @@ jobs:
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

ci/linkcheck.sh

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)