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-apache-tomcat.yml b/.github/workflows/update-apache-tomcat.yml index b80fe511..b2331e1c 100644 --- a/.github/workflows/update-apache-tomcat.yml +++ b/.github/workflows/update-apache-tomcat.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/apache-tomcat - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/apache-tomcat 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/apache-tomcat from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-azure-application-insights.yml b/.github/workflows/update-azure-application-insights.yml index 8dbee7f2..6101ef50 100644 --- a/.github/workflows/update-azure-application-insights.yml +++ b/.github/workflows/update-azure-application-insights.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/azure-application-insights - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/azure-application-insights 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/azure-application-insights from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-bellsoft-liberica.yml b/.github/workflows/update-bellsoft-liberica.yml index 770bbe91..3f117ad5 100644 --- a/.github/workflows/update-bellsoft-liberica.yml +++ b/.github/workflows/update-bellsoft-liberica.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/bellsoft-liberica - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/bellsoft-liberica 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/bellsoft-liberica from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} 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-clojure-tools.yml b/.github/workflows/update-clojure-tools.yml index 71cae159..ecfcc46b 100644 --- a/.github/workflows/update-clojure-tools.yml +++ b/.github/workflows/update-clojure-tools.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/clojure-tools - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/clojure-tools 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/clojure-tools from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-dist-zip.yml b/.github/workflows/update-dist-zip.yml index 7f1ee951..b2393e39 100644 --- a/.github/workflows/update-dist-zip.yml +++ b/.github/workflows/update-dist-zip.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/dist-zip - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/dist-zip 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/dist-zip from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }} diff --git a/.github/workflows/update-encrypt-at-rest.yml b/.github/workflows/update-encrypt-at-rest.yml index ce6e535f..4edc1c09 100644 --- a/.github/workflows/update-encrypt-at-rest.yml +++ b/.github/workflows/update-encrypt-at-rest.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/encrypt-at-rest - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/encrypt-at-rest 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/encrypt-at-rest 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-google-stackdriver.yml b/.github/workflows/update-google-stackdriver.yml index d707c7ae..d8c71853 100644 --- a/.github/workflows/update-google-stackdriver.yml +++ b/.github/workflows/update-google-stackdriver.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/google-stackdriver - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/google-stackdriver 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/google-stackdriver 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-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-watchexec.yml b/.github/workflows/update-watchexec.yml index 409ca29d..80817340 100644 --- a/.github/workflows/update-watchexec.yml +++ b/.github/workflows/update-watchexec.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/watchexec - uses: peter-evans/create-pull-request@v3 @@ -119,7 +128,7 @@ jobs: Bumps gcr.io/paketo-buildpacks/watchexec 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/watchexec from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}