Skip to content

Commit

Permalink
[ci] fix cache key not being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
yashgorana committed Oct 4, 2023
1 parent b06ec41 commit 654abb9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/cd-syft-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ jobs:
id: cache
uses: actions/cache@v3
with:
path: scripts/commit_hash # we don't care about the file, just the key
key: dev-commit-${{ github.sha }}
path: scripts/k8s_dev_hash # we don't care about the file, just the key
key: k8s-dev-${{ github.sha }}
lookup-only: true

- name: Save Commit SHA
if: github.event_name == 'schedule' || github.event.inputs.check-cache == 'true'
# only for making the cache action happy
run: echo "${{ github.sha }}" > scripts/k8s_dev_hash

deploy-syft-dev:
needs: check-last-run
if: needs.check-last-run.outputs.same-commit != 'true'
Expand Down

0 comments on commit 654abb9

Please sign in to comment.