diff --git a/.github/pipeline-version b/.github/pipeline-version index 5db08bf..cfc7307 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.27.0 +1.28.0 diff --git a/.github/workflows/pb-update-go.yml b/.github/workflows/pb-update-go.yml index 0a77352..9ca77d9 100644 --- a/.github/workflows/pb-update-go.yml +++ b/.github/workflows/pb-update-go.yml @@ -13,7 +13,7 @@ jobs: with: go-version: "1.18" - uses: actions/checkout@v3 - - name: Update Go Version + - name: Update Go Version & Modules id: update-go run: | #!/usr/bin/env bash @@ -35,15 +35,26 @@ jobs: 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}" + if [ "$OLD_GO_VERSION" == "$GO_VERSION" ]; then + COMMIT_TITLE="Bump Go Modules" + COMMIT_BODY="Bumps Go modules used by the project. See the commit for details on what modules were updated." + COMMIT_SEMVER="semver:patch" + else + COMMIT_TITLE="Bump Go from ${OLD_GO_VERSION} to ${GO_VERSION}" + COMMIT_BODY="Bumps Go from ${OLD_GO_VERSION} to ${GO_VERSION} and update Go modules used by the project. See the commit for details on what modules were updated." + COMMIT_SEMVER="semver:minor" + fi + + echo "::set-output name=commit-title::${COMMIT_TITLE}" + echo "::set-output name=commit-body::${COMMIT_BODY}" + echo "::set-output name=commit-semver::${COMMIT_SEMVER}" 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 }}`. + ${{ steps.update-go.outputs.commit-body }}
Release Notes @@ -51,11 +62,11 @@ jobs:
branch: update/go commit-message: |- - Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + ${{ steps.update-go.outputs.commit-title }} - Bumps Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }}. + ${{ steps.update-go.outputs.commit-body }} delete-branch: true - labels: semver:minor, type:task + labels: ${{ steps.update-go.outputs.commit-semver }}, type:task signoff: true - title: Bump Go from ${{ steps.update-go.outputs.old-go-version }} to ${{ steps.update-go.outputs.go-version }} + title: ${{ steps.update-go.outputs.commit-title }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}