Skip to content

Commit 349e714

Browse files
grokspawntmshort
authored andcommitted
Updating workflows to pull go version from go.mod file (openshift#1025)
Signed-off-by: Jordan Keister <[email protected]> Signed-off-by: Jordan Keister <[email protected]> Upstream-repository: operator-registry Upstream-commit: bd3c80489dbf6942005c345a33733fb782e952fe
1 parent 77a49f5 commit 349e714

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

pkg/manifests/csv.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
name: packageserver
66
namespace: openshift-operator-lifecycle-manager
77
labels:
8-
olm.version: 0.0.0-8a6689d10c3305eb1ad996901d6365aa35601937
8+
olm.version: 0.0.0-937160dfa3b7f48594968a596759c5633b85d02e
99
olm.clusteroperator.name: operator-lifecycle-manager-packageserver
1010
annotations:
1111
include.release.openshift.io/self-managed-high-availability: "true"
@@ -159,7 +159,7 @@ spec:
159159
- packageserver
160160
topologyKey: "kubernetes.io/hostname"
161161
maturity: alpha
162-
version: 0.0.0-8a6689d10c3305eb1ad996901d6365aa35601937
162+
version: 0.0.0-937160dfa3b7f48594968a596759c5633b85d02e
163163
apiservicedefinitions:
164164
owned:
165165
- group: packages.operators.coreos.com

staging/operator-registry/.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v2
16-
- uses: actions/setup-go@v2
16+
- uses: actions/setup-go@v3
1717
with:
18-
go-version: '~1.18'
18+
go-version-file: "go.mod"
1919
- run: make build

staging/operator-registry/.github/workflows/go-apidiff.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
if: github.event_name == 'pull_request'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Set up Go
18-
uses: actions/setup-go@v2
19-
with:
20-
go-version: '~1.18'
21-
id: go
2217
- name: Check out code into the Go module directory
2318
uses: actions/checkout@v2
2419
with:
2520
fetch-depth: 0
21+
- name: Set up Go
22+
uses: actions/setup-go@v3
23+
with:
24+
go-version-file: 'go.mod'
25+
id: go
2626
- name: Run go-apidiff
2727
uses: joelanford/go-apidiff@main

staging/operator-registry/.github/workflows/goreleaser.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
# GoReleaser requires fetch-depth: 0 to correctly
5454
# run git describe
5555
fetch-depth: 0
56-
- uses: actions/setup-go@v2
56+
- uses: actions/setup-go@v3
5757
with:
58-
go-version: '~1.18'
58+
go-version-file: "go.mod"
5959

6060
- name: "Run GoReleaser"
6161
run: make release
@@ -78,9 +78,9 @@ jobs:
7878
# run git describe
7979
fetch-depth: 0
8080

81-
- uses: actions/setup-go@v2
81+
- uses: actions/setup-go@v3
8282
with:
83-
go-version: '~1.18'
83+
go-version-file: "go.mod"
8484

8585
- name: "Run GoReleaser"
8686
run: make release
@@ -103,9 +103,9 @@ jobs:
103103
# run git describe
104104
fetch-depth: 0
105105

106-
- uses: actions/setup-go@v2
106+
- uses: actions/setup-go@v3
107107
with:
108-
go-version: '~1.18'
108+
go-version-file: "go.mod"
109109

110110
- name: "Install linux cross-compilers"
111111
run: |

staging/operator-registry/.github/workflows/sanity.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-go@v2
17+
- uses: actions/setup-go@v3
1818
with:
19-
go-version: '~1.18'
19+
go-version-file: "go.mod"
2020
- name: Install goimports
2121
run: go install golang.org/x/tools/cmd/goimports@latest
2222
- name: Run sanity checks

staging/operator-registry/.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-20.04
1313
steps:
1414
- uses: actions/checkout@v2
15-
- uses: actions/setup-go@v2
15+
- uses: actions/setup-go@v3
1616
with:
17-
go-version: '~1.18'
17+
go-version-file: 'go.mod'
1818
- name: Install podman
1919
run: |
2020
. /etc/os-release

staging/operator-registry/.github/workflows/unit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-go@v2
17+
- uses: actions/setup-go@v3
1818
with:
19-
go-version: '~1.18'
19+
go-version-file: "go.mod"
2020
- run: make unit
2121
- run: sed -i'' "s:^github.com/$GITHUB_REPOSITORY/::" coverage.out
2222
- run: .github/workflows/codecov.sh -Z -f coverage.out

0 commit comments

Comments
 (0)