Skip to content

Commit 811ac88

Browse files
committed
Fix(build): Update actions/cache
Signed-off-by: Anoop Gopalakrishnan <anoop2811@aol.in>
1 parent 04a0def commit 811ac88

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/go.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ on:
1111
- master
1212
- release-*
1313

14-
permissions: # added using https://github.com/step-security/secure-workflows
14+
permissions: # added using https://github.com/step-security/secure-workflows
1515
contents: read
1616

1717
env:
1818
# Common versions
19-
GO_VERSION: '1.22'
20-
GOLANGCI_VERSION: 'v1.54.2'
19+
GO_VERSION: "1.22"
20+
GOLANGCI_VERSION: "v1.54.2"
2121

2222
jobs:
23-
2423
detect-noop:
2524
runs-on: ubuntu-22.04
2625
outputs:
@@ -64,8 +63,8 @@ jobs:
6463
needs: detect-noop
6564
if: needs.detect-noop.outputs.noop != 'true'
6665
permissions:
67-
contents: read # for actions/checkout to fetch code
68-
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
66+
contents: read # for actions/checkout to fetch code
67+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
6968

7069
steps:
7170
- name: Setup Go
@@ -128,7 +127,7 @@ jobs:
128127
run: |
129128
export PATH=$(pwd)/bin/:$PATH
130129
make check-diff
131-
130+
132131
- name: Cleanup binary
133132
run: make build-cleanup
134133

@@ -149,7 +148,7 @@ jobs:
149148
go-version: ${{ env.GO_VERSION }}
150149

151150
- name: Cache Go Dependencies
152-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
151+
uses: actions/cache@v4
153152
with:
154153
path: .work/pkg
155154
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}

.github/workflows/unit-test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
- release-*
8-
workflow_dispatch: { }
8+
workflow_dispatch: {}
99
pull_request:
1010
branches:
1111
- master
@@ -16,13 +16,12 @@ permissions:
1616

1717
env:
1818
# Common versions
19-
GO_VERSION: '1.22'
19+
GO_VERSION: "1.22"
2020

2121
jobs:
22-
2322
detect-noop:
2423
permissions:
25-
actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs
24+
actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs
2625
runs-on: ubuntu-22.04
2726
outputs:
2827
noop: ${{ steps.noop.outputs.should_skip }}
@@ -53,7 +52,7 @@ jobs:
5352
submodules: true
5453

5554
- name: Cache Go Dependencies
56-
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84
55+
uses: actions/cache@v4
5756
with:
5857
path: .work/pkg
5958
key: ${{ runner.os }}-pkg-${{ hashFiles('**/go.sum') }}

0 commit comments

Comments
 (0)