Skip to content

Commit 59cbdf6

Browse files
Fix github workflows
Signed-off-by: Devanshu <[email protected]>
1 parent 3f3b619 commit 59cbdf6

File tree

8 files changed

+23
-21
lines changed

8 files changed

+23
-21
lines changed

.github/workflows/benchmark-action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
name: Performance regression check
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4.1.2
24+
- uses: actions/checkout@v4
2525
- uses: actions/setup-go@v5 # default version of go is 1.10
2626
with:
27-
go-version: 1.23.3
27+
go-version-file: go.mod
2828
- name: Install Carvel Tools
2929
run: ./hack/install-deps.sh
3030
# Run benchmark with `go test -bench` and stores the output to a file

.github/workflows/dependency-updater.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v4.1.2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go 1.x
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.23.3
19+
go-version-file: go.mod
2020
- name: Update Dependencies File
2121
run: go run ./hack/dependencies.go update
2222
- name: Create Pull Request

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
name: lint
1919
runs-on: ubuntu-latest
2020
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
2124
- name: Set up Go 1.x
2225
uses: actions/setup-go@v5
2326
with:
24-
go-version: 1.23.3
25-
- uses: actions/[email protected]
26-
with:
27-
fetch-depth: '0'
27+
go-version-file: go.mod
2828
- name: golangci-lint
2929
uses: golangci/[email protected]
3030
with:

.github/workflows/kind-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: helm/kind-action@v1
2222
with:
2323
cluster_name: kinder
24-
- uses: actions/checkout@v4.1.2
24+
- uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 0
2727
- uses: actions/setup-go@v5

.github/workflows/release-process.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
id-token: write
1717
steps:
1818
- name: Check out code
19-
uses: actions/checkout@v4.1.2
19+
uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
2222

@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Go 1.x
4040
uses: actions/setup-go@v5
4141
with:
42-
go-version: 1.23.3
42+
go-version-file: go.mod
4343

4444
- name: Set up Cosign
4545
uses: sigstore/[email protected]

.github/workflows/test-kctrl-gh.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
name: Test kctrl GH
2222
runs-on: ubuntu-latest
2323
steps:
24-
- name: Set up Go 1.x
25-
uses: actions/setup-go@v5
26-
with:
27-
go-version: 1.23.3
2824
- name: Check out code
29-
uses: actions/checkout@v4.1.2
25+
uses: actions/checkout@v4
3026
with:
3127
fetch-depth: 0
28+
- name: Set up Go 1.x
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version-file: go.mod
3232
- name: Install Carvel Tools
3333
uses: carvel-dev/setup-action@v2
3434
with:

.github/workflows/trivy-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ jobs:
6464
security-events: write
6565
steps:
6666
- name: Checkout
67-
uses: actions/checkout@v4.1.2
67+
uses: actions/checkout@v4
6868
with:
6969
fetch-depth: 0
7070
- name: Set up Go 1.x
7171
uses: actions/setup-go@v5
7272
with:
73-
go-version: 1.23.3
73+
go-version-file: go.mod
7474
- name: Build the kapp-controller artifacts
7575
run: |
7676
./hack/install-deps.sh

.github/workflows/upgrade-testing.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ jobs:
2323
name: Upgrade Testing
2424
runs-on: ubuntu-latest
2525
steps:
26+
- name: Check out code
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
2630
- name: Set up Go 1.x
2731
uses: actions/setup-go@v5
2832
with:
29-
go-version: 1.23.3
30-
- name: Check out code
31-
uses: actions/[email protected]
33+
go-version-file: go.mod
3234
- name: Install Carvel Tools
3335
run: ./hack/install-deps.sh
3436
- name: Run Upgrade Test

0 commit comments

Comments
 (0)