From 0ff99b73a52d8fed4484b78fd759f5930aa76699 Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Tue, 26 Oct 2021 17:56:33 +0000 Subject: [PATCH] Bump pipeline from 1.11.0 to 1.12.0 Bumps pipeline from 1.11.0 to 1.12.0. Signed-off-by: GitHub --- .github/pipeline-version | 2 +- .github/workflows/update-jdk-11.yml | 13 +++++++++++-- .github/workflows/update-jdk-16.yml | 13 +++++++++++-- .github/workflows/update-jdk-17.yml | 13 +++++++++++-- .github/workflows/update-jdk-8.yml | 13 +++++++++++-- 5 files changed, 45 insertions(+), 9 deletions(-) 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-jdk-11.yml b/.github/workflows/update-jdk-11.yml index 7309152..078a59f 100644 --- a/.github/workflows/update-jdk-11.yml +++ b/.github/workflows/update-jdk-11.yml @@ -48,7 +48,7 @@ jobs: repository: corretto-11 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -70,8 +70,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: jdk SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps JDK 11 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 JDK 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jdk-16.yml b/.github/workflows/update-jdk-16.yml index 51ca9c1..d626d4b 100644 --- a/.github/workflows/update-jdk-16.yml +++ b/.github/workflows/update-jdk-16.yml @@ -48,7 +48,7 @@ jobs: repository: corretto-jdk - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -70,8 +70,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: jdk SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps JDK 16 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 JDK 16 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jdk-17.yml b/.github/workflows/update-jdk-17.yml index 23d146a..8311f51 100644 --- a/.github/workflows/update-jdk-17.yml +++ b/.github/workflows/update-jdk-17.yml @@ -48,7 +48,7 @@ jobs: repository: corretto-17 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -70,8 +70,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: jdk SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps JDK 17 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 JDK 17 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jdk-8.yml b/.github/workflows/update-jdk-8.yml index bac89a5..d398e54 100644 --- a/.github/workflows/update-jdk-8.yml +++ b/.github/workflows/update-jdk-8.yml @@ -48,7 +48,7 @@ jobs: repository: corretto-8 - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -70,8 +70,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: jdk SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps JDK 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 JDK 8 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}