File tree 6 files changed +71
-10
lines changed
6 files changed +71
-10
lines changed Original file line number Diff line number Diff line change 1
- 1.22 .0
1
+ 1.23 .0
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ jobs:
18
18
username : _json_key
19
19
- uses : actions/setup-go@v3
20
20
with :
21
- go-version : " 1.17 "
21
+ go-version : " 1.18 "
22
22
- name : Install create-package
23
23
run : |
24
24
#!/usr/bin/env bash
25
25
26
26
set -euo pipefail
27
27
28
- GO111MODULE=on go get -u - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package
28
+ go install - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest
29
29
- name : Install crane
30
30
run : |
31
31
#!/usr/bin/env bash
Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ jobs:
12
12
steps :
13
13
- uses : actions/setup-go@v3
14
14
with :
15
- go-version : " 1.17 "
15
+ go-version : " 1.18 "
16
16
- name : Install create-package
17
17
run : |
18
18
#!/usr/bin/env bash
19
19
20
20
set -euo pipefail
21
21
22
- GO111MODULE=on go get -u - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package
22
+ go install - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest
23
23
- name : Install pack
24
24
run : |
25
25
#!/usr/bin/env bash
@@ -176,7 +176,7 @@ jobs:
176
176
restore-keys : ${{ runner.os }}-go-
177
177
- uses : actions/setup-go@v3
178
178
with :
179
- go-version : " 1.17 "
179
+ go-version : " 1.18 "
180
180
- name : Install richgo
181
181
run : |
182
182
#!/usr/bin/env bash
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ jobs:
11
11
steps :
12
12
- uses : actions/setup-go@v3
13
13
with :
14
- go-version : " 1.17 "
14
+ go-version : " 1.18 "
15
15
- name : Install update-buildpack-dependency
16
16
run : |
17
17
#!/usr/bin/env bash
18
18
19
19
set -euo pipefail
20
20
21
- GO111MODULE=on go get -u - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency
21
+ go install - ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest
22
22
- name : Install yj
23
23
run : |
24
24
#!/usr/bin/env bash
Original file line number Diff line number Diff line change
1
+ name : Update Go
2
+ " on " :
3
+ schedule :
4
+ - cron : 0 2 * * 1
5
+ workflow_dispatch : {}
6
+ jobs :
7
+ update :
8
+ name : Update Go
9
+ runs-on :
10
+ - ubuntu-latest
11
+ steps :
12
+ - uses : actions/setup-go@v3
13
+ with :
14
+ go-version : " 1.18"
15
+ - uses : actions/checkout@v3
16
+ - name : Update Go Version
17
+ id : update-go
18
+ run : |
19
+ #!/usr/bin/env bash
20
+
21
+ set -euo pipefail
22
+
23
+ if [ -z "${GO_VERSION:-}" ]; then
24
+ echo "No go version set"
25
+ exit 1
26
+ fi
27
+
28
+ OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2)
29
+
30
+ go mod edit -go="$GO_VERSION"
31
+ go mod tidy
32
+ go get -u all
33
+ go mod tidy
34
+
35
+ git add go.mod go.sum
36
+ git checkout -- .
37
+
38
+ echo "::set-output name=old-go-version::${OLD_GO_VERSION}"
39
+ echo "::set-output name=go-version::${GO_VERSION}"
40
+ env :
41
+ GO_VERSION : " 1.18"
42
+ - uses : peter-evans/create-pull-request@v4
43
+ with :
44
+ author : ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com>
45
+ body : |-
46
+ Bumps Go from `${{ steps.update-go.outputs.old-go-version }}` to `${{ steps.update-go.outputs.go-version }}`.
47
+
48
+ <details>
49
+ <summary>Release Notes</summary>
50
+ ${{ steps.pipeline.outputs.release-notes }}
51
+ </details>
52
+ branch : update/go
53
+ commit-message : |-
54
+ Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}
55
+
56
+ Bumps Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}.
57
+ delete-branch : true
58
+ labels : semver:minor, type:task
59
+ signoff : true
60
+ title : Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}
61
+ token : ${{ secrets.JAVA_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ jobs:
16
16
steps :
17
17
- uses : actions/setup-go@v3
18
18
with :
19
- go-version : " 1.17 "
19
+ go-version : " 1.18 "
20
20
- name : Install octo
21
21
run : |
22
22
#!/usr/bin/env bash
23
23
24
24
set -euo pipefail
25
25
26
- GO111MODULE=on go get -u - ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo
26
+ go install - ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo@latest
27
27
- uses : actions/checkout@v3
28
28
- name : Update Pipeline
29
29
id : pipeline
You can’t perform that action at this time.
0 commit comments