Skip to content

Commit

Permalink
chore(deps): 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] <support@github.com>
  • Loading branch information
dependabot[bot] authored and swiatekm committed Jan 18, 2024
1 parent 3891b3c commit e35d054
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
echo "GOMODCACHE=$(go env GOMODCACHE)" >> "$GITHUB_ENV"
echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_ENV"
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
${{ env.GOMODCACHE }}/cache
Expand All @@ -46,7 +46,7 @@ jobs:
restore-keys: |
go-test-${{ env.GO_VERSION }}-${{matrix.arch_os}}-
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
/home/runner/.cache/golangci-lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ jobs:
echo "GOMODCACHE=$(go env GOMODCACHE)" >> "$GITHUB_ENV"
echo "GOCACHE=$(go env GOCACHE)" >> "$GITHUB_ENV"
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
if: steps.changed-files.outputs.any_changed == 'true'
with:
path: |
Expand All @@ -238,7 +238,7 @@ jobs:
restore-keys: |
go-test-${{ env.GO_VERSION }}-${{matrix.arch_os}}-
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: |
/home/runner/.cache/golangci-lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:

# As described in
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
/Users/runner/go/pkg/mod
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
echo "restore-keys=go-build-${{ env.GO_VERSION }}${OTELCOL_FIPS_SUFFIX}-${{inputs.arch_os}}-" >> $GITHUB_OUTPUT
echo "toolchain-cache-key=toolchain-${{inputs.arch_os}}-${{ hashFiles('otelcolbuilder/build-fips/config.mak', 'otelcolbuilder/build-fips/Makefile') }}" >> $GITHUB_OUTPUT
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
if: ${{ ! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true' }}
with:
path: |
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
run: make otelcol-sumo-${{inputs.arch_os}}
working-directory: ./otelcolbuilder

- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
id: restore-toolchain-cache
if: ${{ inputs.fips && contains(inputs.arch_os, 'linux') && (! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true') }}
with:
Expand Down Expand Up @@ -199,14 +199,14 @@ jobs:
path: ./otelcolbuilder/cmd/${{ steps.set-binary-name.outputs.binary_name }}
if-no-files-found: error

- uses: actions/cache/save@v3
- uses: actions/cache/save@v4
if: ${{ steps.rebuild-toolchain.outcome == 'success' }}
with:
path: |
/opt/toolchain
key: ${{ steps.get-cache-key.outputs.toolchain-cache-key }}

- uses: actions/cache/save@v3
- uses: actions/cache/save@v4
if: ${{ inputs.save-cache && (! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true') }}
with:
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
echo "cache-key=go-test-${{ env.GO_VERSION }}${BORINGCRYPTO_SUFFIX}-${{inputs.arch_os}}-${{ hashFiles('pkg/**/go.sum', 'otelcolbuilder/.otelcol-builder.yaml') }}" >> $GITHUB_OUTPUT
echo "restore-keys=go-test-${{ env.GO_VERSION }}${BORINGCRYPTO_SUFFIX}-${{inputs.arch_os}}-" >> $GITHUB_OUTPUT
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
if: ${{ ! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true' }}
with:
path: |
Expand All @@ -95,7 +95,7 @@ jobs:
if: ${{ ! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true' }}
run: make gotest ${{ inputs.boringcrypto && 'CGO_ENABLED=1 GOEXPERIMENT=boringcrypto' || '' }}

- uses: actions/cache/save@v3
- uses: actions/cache/save@v4
if: ${{ inputs.save-cache && (! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true') }}
with:
path: |
Expand Down

0 comments on commit e35d054

Please sign in to comment.