diff --git a/.github/workflows/update-maven.yml b/.github/workflows/update-maven.yml index 4424592..c529062 100644 --- a/.github/workflows/update-maven.yml +++ b/.github/workflows/update-maven.yml @@ -51,7 +51,7 @@ jobs: uri: https://repo1.maven.org/maven2 - name: Update Buildpack Dependency id: buildpack - run: |- + run: | #!/usr/bin/env bash set -euo pipefail @@ -73,17 +73,8 @@ 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: maven SHA256: ${{ steps.dependency.outputs.sha256 }} @@ -100,7 +91,7 @@ jobs: Bumps maven from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }}. delete-branch: true - labels: ${{ steps.buildpack.outputs.version-label }}, type:dependency-upgrade + labels: semver:minor, type:dependency-upgrade signoff: true title: Bump maven from ${{ steps.buildpack.outputs.old-version }} to ${{ steps.buildpack.outputs.new-version }} token: ${{ secrets.JAVA_GITHUB_TOKEN }}