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-cargo.yml b/.github/workflows/update-cargo.yml index 964ad56..04b6acf 100644 --- a/.github/workflows/update-cargo.yml +++ b/.github/workflows/update-cargo.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: BP_DEPENDENCY: docker.io/paketo-community/cargo DEPENDENCY: docker.io/paketocommunity/cargo @@ -120,7 +129,7 @@ jobs: Bumps docker.io/paketocommunity/cargo 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 docker.io/paketocommunity/cargo from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-procfile.yml b/.github/workflows/update-procfile.yml index 83d41bc..873f4da 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.PAKETO_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-rust-dist.yml b/.github/workflows/update-rust-dist.yml index d71d7bb..1cff5ca 100644 --- a/.github/workflows/update-rust-dist.yml +++ b/.github/workflows/update-rust-dist.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: BP_DEPENDENCY: docker.io/paketo-community/rust-dist DEPENDENCY: docker.io/paketocommunity/rust-dist @@ -120,7 +129,7 @@ jobs: Bumps docker.io/paketocommunity/rust-dist 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 docker.io/paketocommunity/rust-dist from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-rustup.yml b/.github/workflows/update-rustup.yml index 73ab47a..fde7806 100644 --- a/.github/workflows/update-rustup.yml +++ b/.github/workflows/update-rustup.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: BP_DEPENDENCY: docker.io/paketo-community/rustup DEPENDENCY: docker.io/paketocommunity/rustup @@ -120,7 +129,7 @@ jobs: Bumps docker.io/paketocommunity/rustup 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 docker.io/paketocommunity/rustup from ${{ steps.package.outputs.old-version }} to ${{ steps.package.outputs.new-version }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}