Skip to content

Commit

Permalink
Bump actions/cache from 3 to 4
Browse files Browse the repository at this point in the history
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored Feb 14, 2024
1 parent a7257d6 commit d86452e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 35 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
TARGET_VERSION=$TAG bash tools/workflow/docker-version-compare.sh
- name: Cache packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: ${{ env.PACKAGE_CACHE_KEY }}
path: ${{ env.PACKAGING_ROOT }}
Expand All @@ -117,13 +117,13 @@ jobs:

- name: Cache if success
id: release-to-s3
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: release-to-s3-${{ github.run_id }}
path: VERSION

- name: Restore cached packages
uses: actions/cache@v3
uses: actions/cache@v4
if: steps.release-to-s3.outputs.cache-hit != 'true'
with:
key: ${{ env.PACKAGE_CACHE_KEY }}
Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:

- name: Cache if success
id: release-version-image
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: release-version-image-${{ github.run_id }}
path: VERSION
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
steps:
- name: Cache if success
id: release-ssm
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: release-ssm-${{ github.run_id }}
path: VERSION
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
- name: Build aotutil
run: cd testing-framework/cmd/aotutil && make build
- name: Cache aotutil
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "aotutil_${{ hashFiles('testing-framework/cmd/aotutil/*.go') }}_${{ hashFiles('testing-framework/cmd/aotutil/go.sum') }}"
path: testing-framework/cmd/aotutil/aotutil
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- name: Cache binaries
id: cached_binaries
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down Expand Up @@ -277,14 +277,14 @@ jobs:

- name: Cache rpms
id: cached_rpms
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_rpms_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"

- name: restore cached binaries
if: steps.cached_rpms.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down Expand Up @@ -337,14 +337,14 @@ jobs:

- name: Cache Debs
id: cached_debs
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_debs_${{ github.run_id }}"
path: ${{ env.PACKAGING_ROOT }}

- name: restore cached binaries
if: steps.cached_debs.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down Expand Up @@ -393,7 +393,7 @@ jobs:

- name: Restore cached Debs
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_debs_${{ github.run_id }}"
path: ${{ env.PACKAGING_ROOT }}
Expand All @@ -412,21 +412,21 @@ jobs:

- name: Cache SSM files
id: cached_ssm
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_ssm_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}/ssm"

- name: Restore cached rpms
if: steps.cached_ssm.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_rpms_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"

- name: Restore cached debs
if: steps.cached_ssm.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_debs_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"
Expand Down Expand Up @@ -458,21 +458,21 @@ jobs:

- name: Cache the packages
id: cached_packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_packages_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"

- name: Restore cached rpms
if: steps.cached_packages.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_rpms_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"

- name: Restore cached debs
if: steps.cached_packages.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_debs_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"
Expand All @@ -486,7 +486,7 @@ jobs:

- name: Restore cached ssm
if: steps.cached_packages.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_ssm_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}/ssm"
Expand All @@ -513,21 +513,21 @@ jobs:

- name: Cache if success
id: e2etest-release
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
VERSION
key: e2etest-release-${{ github.run_id }}

- name: restore cached rpms
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_packages_${{ github.run_id }}"
path: "${{ env.PACKAGING_ROOT }}"

- name: Restore cached binaries
if: steps.e2etest-release.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down Expand Up @@ -677,7 +677,7 @@ jobs:
run: echo "ttldate=$(date -u -d "+7 days" +%s)" >> $GITHUB_OUTPUT

- name: Restore aotutil
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "aotutil_${{ hashFiles('testing-framework/cmd/aotutil/*.go') }}_${{ hashFiles('testing-framework/cmd/aotutil/go.sum') }}"
path: testing-framework/cmd/aotutil/aotutil
Expand Down Expand Up @@ -764,7 +764,7 @@ jobs:

- name: restore cached packages
id: cache_packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: "${{ env.PACKAGING_ROOT }}"
key: "cached_packages_${{ github.run_id }}"
Expand Down Expand Up @@ -836,7 +836,7 @@ jobs:
aws-region: us-west-2

- name: restore cached packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: "${{ env.PACKAGING_ROOT }}"
key: "cached_packages_${{ github.run_id }}"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/PR-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Cache binaries
id: cached_binaries
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down Expand Up @@ -219,7 +219,7 @@ jobs:

- name: restore cached binaries
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand All @@ -245,14 +245,14 @@ jobs:

- name: Restore cached binaries
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build

- name: Cache built debian
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_deb_${{ github.run_id }}"
path: build/packages/debian
Expand All @@ -273,7 +273,7 @@ jobs:

- name: Restore cached deb
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_deb_${{ github.run_id }}"
path: build/packages/debian
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:

- name: restore cached binaries
if: ${{ needs.changes.outputs.changed == 'true' }}
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "cached_binaries_${{ github.run_id }}"
path: build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Build aotutil
run: cd testing-framework/cmd/aotutil && make build
- name: Cache aotutil
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "aotutil_${{ github.run_id }}"
path: testing-framework/cmd/aotutil/aotutil
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
ref: ${{ needs.create-test-ref.outputs.testRef }}

- name: Restore aoutil
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "aotutil_${{ github.run_id }}"
path: testing-framework/cmd/aotutil/aotutil
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
path: testing-framework
ref: ${{ needs.create-test-ref.outputs.testRef }}
- name: Cache aotutil
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
key: "aotutil_${{ hashFiles('testing-framework/cmd/aotutil/*.go') }}_${{ hashFiles('testing-framework/cmd/aotutil/go.sum') }}"
Expand Down Expand Up @@ -178,7 +178,7 @@ jobs:
ref: ${{ needs.create-test-ref.outputs.testRef }}

- name: Restore aotutil
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: "aotutil_${{ hashFiles('testing-framework/cmd/aotutil/*.go') }}_${{ hashFiles('testing-framework/cmd/aotutil/go.sum') }}"
path: testing-framework/cmd/aotutil/aotutil
Expand Down

0 comments on commit d86452e

Please sign in to comment.