From 9ef34a33b574682d1c78a04cb3f44880020b155c Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 10 Aug 2022 17:53:12 +0000 Subject: [PATCH] Bump pipeline from 1.22.0 to 1.23.0 Bumps pipeline from 1.22.0 to 1.23.0. Signed-off-by: GitHub --- .github/pipeline-version | 2 +- .github/workflows/create-package.yml | 4 +- .github/workflows/tests.yml | 10 +-- .github/workflows/update-go.yml | 61 +++++++++++++++++++ .github/workflows/update-pipeline.yml | 4 +- .../update-tomcat-access-logging-support.yml | 4 +- .../update-tomcat-lifecycle-support.yml | 4 +- .../update-tomcat-logging-support.yml | 4 +- .../workflows/update-tomee-7-microprofile.yml | 4 +- .github/workflows/update-tomee-7-plume.yml | 4 +- .github/workflows/update-tomee-7-plus.yml | 4 +- .../workflows/update-tomee-7-webprofile.yml | 4 +- .../workflows/update-tomee-8-microprofile.yml | 4 +- .github/workflows/update-tomee-8-plume.yml | 4 +- .github/workflows/update-tomee-8-plus.yml | 4 +- .../workflows/update-tomee-8-webprofile.yml | 4 +- .../workflows/update-tomee-9-microprofile.yml | 4 +- .github/workflows/update-tomee-9-plume.yml | 4 +- .github/workflows/update-tomee-9-plus.yml | 4 +- .../workflows/update-tomee-9-webprofile.yml | 4 +- 20 files changed, 101 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/update-go.yml diff --git a/.github/pipeline-version b/.github/pipeline-version index 57807d6..a6c2798 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.22.0 +1.23.0 diff --git a/.github/workflows/create-package.yml b/.github/workflows/create-package.yml index 515b022..ec174db 100644 --- a/.github/workflows/create-package.yml +++ b/.github/workflows/create-package.yml @@ -18,14 +18,14 @@ jobs: username: _json_key - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install create-package run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest - name: Install crane run: | #!/usr/bin/env bash diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0eb60a1..aec9d4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,14 +12,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install create-package run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest - name: Install pack run: | #!/usr/bin/env bash @@ -176,14 +176,14 @@ jobs: restore-keys: ${{ runner.os }}-go- - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install create-package run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest - name: Install pack run: | #!/usr/bin/env bash @@ -255,7 +255,7 @@ jobs: restore-keys: ${{ runner.os }}-go- - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install richgo run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-go.yml b/.github/workflows/update-go.yml new file mode 100644 index 0000000..0a77352 --- /dev/null +++ b/.github/workflows/update-go.yml @@ -0,0 +1,61 @@ +name: Update Go +"on": + schedule: + - cron: 0 2 * * 1 + workflow_dispatch: {} +jobs: + update: + name: Update Go + runs-on: + - ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: + go-version: "1.18" + - uses: actions/checkout@v3 + - name: Update Go Version + id: update-go + run: | + #!/usr/bin/env bash + + set -euo pipefail + + if [ -z "${GO_VERSION:-}" ]; then + echo "No go version set" + exit 1 + fi + + OLD_GO_VERSION=$(grep -P '^go \d\.\d+' go.mod | cut -d ' ' -f 2) + + go mod edit -go="$GO_VERSION" + go mod tidy + go get -u all + go mod tidy + + git add go.mod go.sum + git checkout -- . + + echo "::set-output name=old-go-version::${OLD_GO_VERSION}" + echo "::set-output name=go-version::${GO_VERSION}" + env: + GO_VERSION: "1.18" + - uses: peter-evans/create-pull-request@v4 + with: + author: ${{ secrets.JAVA_GITHUB_USERNAME }} <${{ secrets.JAVA_GITHUB_USERNAME }}@users.noreply.github.com> + body: |- + Bumps Go from `${{ steps.update-go.outputs.old-go-version }}` to `${{ steps.update-go.outputs.go-version }}`. + +
+ Release Notes + ${{ steps.pipeline.outputs.release-notes }} +
+ branch: update/go + commit-message: |- + Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + + Bumps Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}. + delete-branch: true + labels: semver:minor, type:task + signoff: true + title: Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-pipeline.yml b/.github/workflows/update-pipeline.yml index 32c4932..df21036 100644 --- a/.github/workflows/update-pipeline.yml +++ b/.github/workflows/update-pipeline.yml @@ -16,14 +16,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install octo run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo + go install -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo@latest - uses: actions/checkout@v3 - name: Update Pipeline id: pipeline diff --git a/.github/workflows/update-tomcat-access-logging-support.yml b/.github/workflows/update-tomcat-access-logging-support.yml index 2e90485..3e1cf79 100644 --- a/.github/workflows/update-tomcat-access-logging-support.yml +++ b/.github/workflows/update-tomcat-access-logging-support.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomcat-lifecycle-support.yml b/.github/workflows/update-tomcat-lifecycle-support.yml index cd1f752..b817131 100644 --- a/.github/workflows/update-tomcat-lifecycle-support.yml +++ b/.github/workflows/update-tomcat-lifecycle-support.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomcat-logging-support.yml b/.github/workflows/update-tomcat-logging-support.yml index 2727457..61f430a 100644 --- a/.github/workflows/update-tomcat-logging-support.yml +++ b/.github/workflows/update-tomcat-logging-support.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-7-microprofile.yml b/.github/workflows/update-tomee-7-microprofile.yml index 18cd361..2164fc6 100644 --- a/.github/workflows/update-tomee-7-microprofile.yml +++ b/.github/workflows/update-tomee-7-microprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-7-plume.yml b/.github/workflows/update-tomee-7-plume.yml index f81adbf..ceceaba 100644 --- a/.github/workflows/update-tomee-7-plume.yml +++ b/.github/workflows/update-tomee-7-plume.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-7-plus.yml b/.github/workflows/update-tomee-7-plus.yml index 874ec34..d71a7ab 100644 --- a/.github/workflows/update-tomee-7-plus.yml +++ b/.github/workflows/update-tomee-7-plus.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-7-webprofile.yml b/.github/workflows/update-tomee-7-webprofile.yml index 08681e2..7c6308d 100644 --- a/.github/workflows/update-tomee-7-webprofile.yml +++ b/.github/workflows/update-tomee-7-webprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-8-microprofile.yml b/.github/workflows/update-tomee-8-microprofile.yml index 627bd2d..c5e5e6f 100644 --- a/.github/workflows/update-tomee-8-microprofile.yml +++ b/.github/workflows/update-tomee-8-microprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-8-plume.yml b/.github/workflows/update-tomee-8-plume.yml index 31f1d18..007a25b 100644 --- a/.github/workflows/update-tomee-8-plume.yml +++ b/.github/workflows/update-tomee-8-plume.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-8-plus.yml b/.github/workflows/update-tomee-8-plus.yml index ad002a3..bb3f3e4 100644 --- a/.github/workflows/update-tomee-8-plus.yml +++ b/.github/workflows/update-tomee-8-plus.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-8-webprofile.yml b/.github/workflows/update-tomee-8-webprofile.yml index d6d6f5f..2aa2741 100644 --- a/.github/workflows/update-tomee-8-webprofile.yml +++ b/.github/workflows/update-tomee-8-webprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-9-microprofile.yml b/.github/workflows/update-tomee-9-microprofile.yml index 62bb290..0fbf9c1 100644 --- a/.github/workflows/update-tomee-9-microprofile.yml +++ b/.github/workflows/update-tomee-9-microprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-9-plume.yml b/.github/workflows/update-tomee-9-plume.yml index d927a4d..dd42a94 100644 --- a/.github/workflows/update-tomee-9-plume.yml +++ b/.github/workflows/update-tomee-9-plume.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-9-plus.yml b/.github/workflows/update-tomee-9-plus.yml index 07b9b7a..805c09f 100644 --- a/.github/workflows/update-tomee-9-plus.yml +++ b/.github/workflows/update-tomee-9-plus.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash diff --git a/.github/workflows/update-tomee-9-webprofile.yml b/.github/workflows/update-tomee-9-webprofile.yml index fe12ccd..f691e30 100644 --- a/.github/workflows/update-tomee-9-webprofile.yml +++ b/.github/workflows/update-tomee-9-webprofile.yml @@ -11,14 +11,14 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: "1.17" + go-version: "1.18" - name: Install update-buildpack-dependency run: | #!/usr/bin/env bash set -euo pipefail - GO111MODULE=on go get -u -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency + go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/update-buildpack-dependency@latest - name: Install yj run: | #!/usr/bin/env bash