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 307d724..0e8913a 100644 --- a/.github/workflows/update-jdk-11.yml +++ b/.github/workflows/update-jdk-11.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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 }} @@ -91,7 +100,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 583435f..dac4fa5 100644 --- a/.github/workflows/update-jdk-16.yml +++ b/.github/workflows/update-jdk-16.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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 }} @@ -91,7 +100,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 762395a..c6b8264 100644 --- a/.github/workflows/update-jdk-17.yml +++ b/.github/workflows/update-jdk-17.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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 }} @@ -91,7 +100,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 82aa198..e8f1beb 100644 --- a/.github/workflows/update-jdk-8.yml +++ b/.github/workflows/update-jdk-8.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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 }} @@ -91,7 +100,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 }} diff --git a/.github/workflows/update-jre-11.yml b/.github/workflows/update-jre-11.yml index d8220ac..7b01b0c 100644 --- a/.github/workflows/update-jre-11.yml +++ b/.github/workflows/update-jre-11.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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: jre SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -91,7 +100,7 @@ jobs: Bumps JRE 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 JRE 11 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jre-16.yml b/.github/workflows/update-jre-16.yml index c8f0a0f..cf55134 100644 --- a/.github/workflows/update-jre-16.yml +++ b/.github/workflows/update-jre-16.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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: jre SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -91,7 +100,7 @@ jobs: Bumps JRE 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 JRE 16 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jre-17.yml b/.github/workflows/update-jre-17.yml index 07c6127..a0bbe7d 100644 --- a/.github/workflows/update-jre-17.yml +++ b/.github/workflows/update-jre-17.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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: jre SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -91,7 +100,7 @@ jobs: Bumps JRE 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 JRE 17 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-jre-8.yml b/.github/workflows/update-jre-8.yml index e2790c2..26eb284 100644 --- a/.github/workflows/update-jre-8.yml +++ b/.github/workflows/update-jre-8.yml @@ -51,7 +51,7 @@ jobs: token: ${{ secrets.JAVA_GITHUB_TOKEN }} - name: Update Buildpack Dependency id: buildpack - run: | + run: |- #!/usr/bin/env bash set -euo pipefail @@ -73,8 +73,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: jre SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -91,7 +100,7 @@ jobs: Bumps JRE 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 JRE 8 from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}