diff --git a/.github/pipeline-version b/.github/pipeline-version index 1cac385c..0eed1a29 100644 --- a/.github/pipeline-version +++ b/.github/pipeline-version @@ -1 +1 @@ -1.11.0 +1.12.0 diff --git a/.github/workflows/update-ca-certificates.yml b/.github/workflows/update-ca-certificates.yml index b1c89f6c..d81adc10 100644 --- a/.github/workflows/update-ca-certificates.yml +++ b/.github/workflows/update-ca-certificates.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/ca-certificates - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/ca-certificates from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/ca-certificates from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-environment-variables.yml b/.github/workflows/update-environment-variables.yml index 10fcd66f..9b08e820 100644 --- a/.github/workflows/update-environment-variables.yml +++ b/.github/workflows/update-environment-variables.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/environment-variables - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/environment-variables from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/environment-variables from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-executable-jar.yml b/.github/workflows/update-executable-jar.yml index 244dde7e..9fb7900b 100644 --- a/.github/workflows/update-executable-jar.yml +++ b/.github/workflows/update-executable-jar.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/executable-jar - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/executable-jar from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/executable-jar from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-graalvm.yml b/.github/workflows/update-graalvm.yml index d902f7f7..9ed2abad 100644 --- a/.github/workflows/update-graalvm.yml +++ b/.github/workflows/update-graalvm.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/graalvm - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/graalvm from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/graalvm from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-gradle.yml b/.github/workflows/update-gradle.yml index 62c9b773..8ff88b33 100644 --- a/.github/workflows/update-gradle.yml +++ b/.github/workflows/update-gradle.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/gradle - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/gradle from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/gradle from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-image-labels.yml b/.github/workflows/update-image-labels.yml index df7548c8..8daf8429 100644 --- a/.github/workflows/update-image-labels.yml +++ b/.github/workflows/update-image-labels.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/image-labels - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/image-labels from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/image-labels from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-leiningen.yml b/.github/workflows/update-leiningen.yml index 204c53af..267b7aa8 100644 --- a/.github/workflows/update-leiningen.yml +++ b/.github/workflows/update-leiningen.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/leiningen - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/leiningen from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/leiningen from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-maven.yml b/.github/workflows/update-maven.yml index 3662613a..0b926746 100644 --- a/.github/workflows/update-maven.yml +++ b/.github/workflows/update-maven.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/maven - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/maven from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/maven from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-native-image.yml b/.github/workflows/update-native-image.yml index 7efa4942..c256e451 100644 --- a/.github/workflows/update-native-image.yml +++ b/.github/workflows/update-native-image.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/native-image - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/native-image from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/native-image from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-procfile.yml b/.github/workflows/update-procfile.yml index 18138e6c..f328fd55 100644 --- a/.github/workflows/update-procfile.yml +++ b/.github/workflows/update-procfile.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/procfile - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/procfile from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/procfile from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-sbt.yml b/.github/workflows/update-sbt.yml index 2c8e3b86..e33b947c 100644 --- a/.github/workflows/update-sbt.yml +++ b/.github/workflows/update-sbt.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/sbt - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/sbt from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/sbt from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-spring-boot.yml b/.github/workflows/update-spring-boot.yml index 90e2efe7..fa573c1f 100644 --- a/.github/workflows/update-spring-boot.yml +++ b/.github/workflows/update-spring-boot.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/spring-boot - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/spring-boot from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/spring-boot from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-upx.yml b/.github/workflows/update-upx.yml index a99f3078..799c2c84 100644 --- a/.github/workflows/update-upx.yml +++ b/.github/workflows/update-upx.yml @@ -105,8 +105,17 @@ jobs: git checkout -- . + if [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $1}')" != "$(echo "$NEW_VERSION" | awk -F '.' '{print $1}')" ]; then + LABEL="semver:major" + elif [ "$(echo "$OLD_VERSION" | awk -F '.' '{print $2}')" != "$(echo "$NEW_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::${NEW_VERSION}" + echo "::set-output name=version-label::${LABEL}" env: DEPENDENCY: gcr.io/paketo-buildpacks/upx - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/upx from ${{ steps.package.outputs.old-version }} to ${{ steps.package.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 gcr.io/paketo-buildpacks/upx from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}