Skip to content

Commit 2cee9f9

Browse files
author
Daniel Mikusa
authored
Merge pull request #88 from paketo-buildpacks/update/pipeline
Bump pipeline from 1.22.0 to 1.23.0
2 parents 358a1ba + d942261 commit 2cee9f9

6 files changed

+71
-10
lines changed

.github/pipeline-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.22.0
1+
1.23.0

.github/workflows/create-package.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ jobs:
1818
username: _json_key
1919
- uses: actions/setup-go@v3
2020
with:
21-
go-version: "1.17"
21+
go-version: "1.18"
2222
- name: Install create-package
2323
run: |
2424
#!/usr/bin/env bash
2525
2626
set -euo pipefail
2727
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
2929
- name: Install crane
3030
run: |
3131
#!/usr/bin/env bash

.github/workflows/tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/setup-go@v3
1414
with:
15-
go-version: "1.17"
15+
go-version: "1.18"
1616
- name: Install create-package
1717
run: |
1818
#!/usr/bin/env bash
1919
2020
set -euo pipefail
2121
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
2323
- name: Install pack
2424
run: |
2525
#!/usr/bin/env bash
@@ -176,7 +176,7 @@ jobs:
176176
restore-keys: ${{ runner.os }}-go-
177177
- uses: actions/setup-go@v3
178178
with:
179-
go-version: "1.17"
179+
go-version: "1.18"
180180
- name: Install richgo
181181
run: |
182182
#!/usr/bin/env bash

.github/workflows/update-clojure.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
steps:
1212
- uses: actions/setup-go@v3
1313
with:
14-
go-version: "1.17"
14+
go-version: "1.18"
1515
- name: Install update-buildpack-dependency
1616
run: |
1717
#!/usr/bin/env bash
1818
1919
set -euo pipefail
2020
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
2222
- name: Install yj
2323
run: |
2424
#!/usr/bin/env bash

.github/workflows/update-go.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 }}

.github/workflows/update-pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ jobs:
1616
steps:
1717
- uses: actions/setup-go@v3
1818
with:
19-
go-version: "1.17"
19+
go-version: "1.18"
2020
- name: Install octo
2121
run: |
2222
#!/usr/bin/env bash
2323
2424
set -euo pipefail
2525
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
2727
- uses: actions/checkout@v3
2828
- name: Update Pipeline
2929
id: pipeline

0 commit comments

Comments
 (0)