Skip to content

Commit

Permalink
chore: ci cache only by branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei committed Jul 12, 2024
1 parent a5b2838 commit 85f3352
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ jobs:
uses: actions/cache/restore@v4
with:
path: .cache
key: ci-${{ github.ref_name }}-${{ github.run_id }}
restore-keys: |
ci-${{ github.ref_name }}-
key: ci-${{ github.ref_name }}

- name: "Restore Composer Cache"
uses: actions/cache/restore@v4
Expand Down Expand Up @@ -62,7 +60,7 @@ jobs:
if: always()
with:
path: .cache
key: ci-${{ github.ref_name }}-${{ github.run_id }}
key: ci-${{ github.ref_name }}

- name: "Save vendor directory"
if: steps.restore-composer.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 85f3352

Please sign in to comment.