Skip to content

Commit

Permalink
before
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 7, 2024
1 parent d16e6ed commit 749ccaa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,13 @@ 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: env.before != env.after
if: env.before != hashFiles('.data')
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 749ccaa

Please sign in to comment.