Skip to content

Commit

Permalink
c3
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 7, 2024
1 parent 4643b14 commit 7ae203d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,17 @@ jobs:
# timeout-minutes: 30
# continue-on-error: true

- name: Calculate the database file hash
id: db-hash2
run: echo "after=${{ hashFiles('.data') }}" >> "$GITHUB_ENV"

# Save cache per default branch and the timestamp.
# The cache will not be saved if it already exists.
# Note that the cache fallback flag is enabled for this case in order
# to save cache even if the fallback is not used when restoring it.
- name: Save DB cache
uses: actions/cache/save@v4
if: steps.db-hash.outputs.before != hashFiles('.data')
if: steps.db-hash.outputs.before != steps.db-hash2.outputs.after
with:
path: .data
key: v24.8.0-db10-${{ hashFiles('db_cache_branch') }}-${{ hashFiles('db_cache_fallback_yes') }}-${{ hashFiles('db_cache_timestamp') }}
Expand Down

0 comments on commit 7ae203d

Please sign in to comment.