Skip to content

Commit

Permalink
(IGNORE) Fix CI failure immediately after release is prepared (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe authored Oct 25, 2022
1 parent 4d9ffad commit cccb22d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,16 @@ jobs:
major_pattern: "(MAJORXXXX)"
minor_pattern: "(MINORXXXX)"

- name: Generate changelog since last tag
uses: mathiasvr/command-output@v1
## NEEDS UPDATE for set-output deprecation.
## See https://github.com/mathiasvr/command-output/issues/4.
id: changelog
with:
run: git log --format="* %s" ${{ steps.get-latest-tag.outputs.tag }}..HEAD

- name: "Bump crate version (NOTE: Not pushed back to repo!)"
if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
if: ${{ !contains(github.event.pull_request.title, '(MINOR)') && steps.changelog.outputs.stdout != '' }}
run: |
sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" Cargo.toml
git config user.email "nobody@example.com"
Expand All @@ -267,14 +275,14 @@ jobs:
uses: mathiasvr/command-output@v1
continue-on-error: true
id: bump_exists
if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
if: ${{ !contains(github.event.pull_request.title, '(MINOR)') && steps.changelog.outputs.stdout != '' }}
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 == '' && (!github.event.pull_request.title || !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)')) && steps.changelog.outputs.stdout != '' }}
with:
crate-name: xmp_toolkit

Expand Down

0 comments on commit cccb22d

Please sign in to comment.