diff --git a/.github/pipeline-version b/.github/pipeline-version index 1cac385..0eed1a2 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.11.0 +1.12.0 diff --git a/.github/workflows/update-tomcat-10.yml b/.github/workflows/update-tomcat-10.yml index 1cf5e63..8ee0cdc 100644 --- a/.github/workflows/update-tomcat-10.yml +++ b/.github/workflows/update-tomcat-10.yml @@ -47,7 +47,7 @@ jobs: uri: https://archive.apache.org/dist/tomcat/tomcat-10 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -69,8 +69,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -87,7 +96,7 @@ jobs: Bumps Tomcat 10 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump Tomcat 10 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-tomcat-8.yml b/.github/workflows/update-tomcat-8.yml index 2b5585f..792e974 100644 --- a/.github/workflows/update-tomcat-8.yml +++ b/.github/workflows/update-tomcat-8.yml @@ -47,7 +47,7 @@ jobs: uri: https://archive.apache.org/dist/tomcat/tomcat-8 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -69,8 +69,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -87,7 +96,7 @@ jobs: Bumps Tomcat 8 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump Tomcat 8 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-tomcat-9.yml b/.github/workflows/update-tomcat-9.yml index 8c45718..334d775 100644 --- a/.github/workflows/update-tomcat-9.yml +++ b/.github/workflows/update-tomcat-9.yml @@ -47,7 +47,7 @@ jobs: uri: https://archive.apache.org/dist/tomcat/tomcat-9 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -69,8 +69,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -87,7 +96,7 @@ jobs: Bumps Tomcat 9 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump Tomcat 9 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-tomcat-access-logging-support.yml b/.github/workflows/update-tomcat-access-logging-support.yml index 5a00fd4..6ded011 100644 --- a/.github/workflows/update-tomcat-access-logging-support.yml +++ b/.github/workflows/update-tomcat-access-logging-support.yml @@ -49,7 +49,7 @@ jobs: uri: https://repo.spring.io/release - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -71,8 +71,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat-access-logging-support SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -89,7 +98,7 @@ jobs: Bumps tomcat-access-logging-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump tomcat-access-logging-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-tomcat-lifecycle-support.yml b/.github/workflows/update-tomcat-lifecycle-support.yml index 501e6cf..60fb457 100644 --- a/.github/workflows/update-tomcat-lifecycle-support.yml +++ b/.github/workflows/update-tomcat-lifecycle-support.yml @@ -49,7 +49,7 @@ jobs: uri: https://repo.spring.io/release - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -71,8 +71,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat-lifecycle-support SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -89,7 +98,7 @@ jobs: Bumps tomcat-lifecycle-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump tomcat-lifecycle-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-tomcat-logging-support.yml b/.github/workflows/update-tomcat-logging-support.yml index 636fc32..2fe3f49 100644 --- a/.github/workflows/update-tomcat-logging-support.yml +++ b/.github/workflows/update-tomcat-logging-support.yml @@ -49,7 +49,7 @@ jobs: uri: https://repo.spring.io/release - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -71,8 +71,17 @@ jobs: git add buildpack.toml git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$VERSION" | awk -F '.' '{print $2}')" ]; then + LABEL="semver:minor" + else + LABEL="semver:patch" + fi + echo "::set-output name=old-version::${OLD_VERSION}" echo "::set-output name=new-version::${VERSION}" + echo "::set-output name=version-label::${LABEL}" env: ID: tomcat-logging-support SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -89,7 +98,7 @@ jobs: Bumps tomcat-logging-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: semver:minor, type:dependency-upgrade + labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade signoff: true title: Bump tomcat-logging-support from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}