diff options
author | Hailey <me@haileyok.com> | 2024-05-07 13:08:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 13:08:44 -0700 |
commit | 0658dd053d5eaf6a0e60c1c397d3e167f8a6d29d (patch) | |
tree | 127f59a6d7068be48f515d73fdf1d11372662d48 | |
parent | c6d30f671ae65b83e9b87557d88e8655f8d3e8ab (diff) | |
download | voidsky-0658dd053d5eaf6a0e60c1c397d3e167f8a6d29d.tar.zst |
create new cache key on each run when saving previous commit hash (#3898)
* create new cache key on each run * dynamic restore-key
-rw-r--r-- | .github/workflows/bundle-deploy-eas-update.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/bundle-deploy-eas-update.yml b/.github/workflows/bundle-deploy-eas-update.yml index a4bbaa8d0..729b7bcf2 100644 --- a/.github/workflows/bundle-deploy-eas-update.yml +++ b/.github/workflows/bundle-deploy-eas-update.yml @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}-deploy - cancel-in-progress: false + cancel-in-progress: true outputs: fingerprint-is-different: ${{ steps.fingerprint-debug.outputs.fingerprint-is-different }} @@ -54,7 +54,9 @@ jobs: uses: actions/cache@v4 with: path: last-successful-commit-hash.txt - key: last-successful-deployment-commit-${{ github.ref_name }} + key: last-successful-deployment-commit-${{ github.ref_name }}-${{ github.sha }} + restore-keys: | + last-successful-deployment-commit-${{ github.ref_name }}- - name: Add the last successful deployment commit to the output id: last-successful-commit |