diff --git a/.gitea/workflows/cron.yml b/.gitea/workflows/cron.yml index 4bafe16..12a360d 100644 --- a/.gitea/workflows/cron.yml +++ b/.gitea/workflows/cron.yml @@ -13,8 +13,9 @@ jobs: - uses: actions/cache@v4 env: prefix-key: v0-rust + hash-short: $( $${{ hashFiles('Cargo.lock') }} | cut -c 1-8 ) with: - key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.lock')|head -c 8 }} + key: ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}-${{ env.hash-short }} restore-keys: | ${{ env.prefix-key }}-${{ runner.os }}-${{ runner.arch }}- ${{ env.prefix-key }}-${{ runner.os }}-