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-rustup-gnu.yml b/.github/workflows/update-rustup-gnu.yml index 4938a35..2fac71d 100644 --- a/.github/workflows/update-rustup-gnu.yml +++ b/.github/workflows/update-rustup-gnu.yml @@ -48,7 +48,7 @@ jobs: token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - 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: rustup-gnu SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps rustup-gnu 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 rustup-gnu from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} diff --git a/.github/workflows/update-rustup-musl.yml b/.github/workflows/update-rustup-musl.yml index 136985b..b4cd52e 100644 --- a/.github/workflows/update-rustup-musl.yml +++ b/.github/workflows/update-rustup-musl.yml @@ -48,7 +48,7 @@ jobs: token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }} - 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: rustup-musl SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -88,7 +97,7 @@ jobs: Bumps rustup-musl 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 rustup-musl from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}