commit 75a1a121e2dada9eced29fc80d3579caf4ac6cb2 parent 3df6dcdf9d7bf5cfc092489663428ee299590133 Author: Eric Scouten <scouten@adobe.com> Date: Fri, 23 Sep 2022 12:59:33 -0700 (IGNORE) Fix GH Actions logic error that is causing CI failure now (#137) Diffstat:
| M | .github/workflows/ci.yml | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml @@ -286,13 +286,15 @@ jobs: VERSION: ${{ steps.set-version.outputs.version }} - name: Has (MINOR) tag been used in a previous commit? + uses: mathiasvr/command-output@v1 id: bump_exists if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }} - run: | - git log --format="%s" ${{ steps.get-latest-tag.outputs.tag }}..HEAD | { grep "(MINOR)" || :; } + with: + run: | + git log --format="%s" ${{ steps.get-latest-tag.outputs.tag }}..HEAD | grep "(MINOR)" - name: If this step fails, change title of the PR to include (MINOR) tag uses: obi1kenobi/cargo-semver-checks-action@v1 - if: ${{ steps.bump_exists.outputs.stdout == '' && !contains(github.event.pull_request.title, '(MINOR)') }} + if: ${{ steps.bump_exists.outputs.stdout == '' && (!github.event.pull_request.title || !contains(github.event.pull_request.title, '(MINOR)')) }} with: crate-name: c2pa