Skip to content

Commit 9dfc22e

Browse files
committed
Update cache save condition
1 parent 48f4afa commit 9dfc22e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
--max-redirects 100
8383
--accept 200,403,429,500
8484
--cache
85-
--max-cache-age 1d
85+
--max-cache-age 7d
8686
'./**/*.md'
8787
--exclude './ar/**'
8888
--exclude './de/**'
@@ -113,7 +113,7 @@ jobs:
113113
# CACHE SAVE STEP - Different Behavior Based on Scenario
114114
# =========================================================================
115115
- name: Save lychee cache
116-
if: always()
116+
if: steps.restore-cache.outputs.cache-hit != 'true'
117117
uses: actions/cache/save@v4.3.0
118118
with:
119119
path: .lycheecache
@@ -135,7 +135,6 @@ jobs:
135135
with:
136136
name: lychee-report
137137
path: lychee-report.md
138-
retention-days: 30
139138

140139
# To avoid automated spam, try to find an existing open issue before opening a new one
141140
# Source: https://github.com/cilium/tetragon/pull/805

0 commit comments

Comments
 (0)