Skip to content

Commit

Permalink
Remove version bump check. Should now be covered by release-plz
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten-adobe committed Aug 30, 2024
1 parent e16d6ec commit c8f2e07
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,55 +254,6 @@ jobs:
version: latest
args: --all-targets --all-features

version_bump:
name: Ensure (MAJOR) tag is used when making an API breaking change
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Get latest existing tag
uses: WyriHaximus/github-action-get-previous-tag@v1
id: get-latest-tag

- name: Set new version
uses: paulhatch/semantic-version@v5.4.0
id: set-version
with:
tag_prefix: "v"
version_format: "${major}.${minor}.${patch}"
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"

- name: Generate changelog since last tag
run: |
{
echo 'changelog<<EOF'
git log --format="* %s" ${{ steps.get-latest-tag.outputs.tag }}..HEAD | { grep -v "(IGNORE)" || :; }
echo EOF
} >> "$GITHUB_OUTPUT"
- name: "Bump crate version (NOTE: Not pushed back to repo!)"
continue-on-error: true # If no change to crate version, ignore git commit error
run: |
sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" Cargo.toml
git config user.email "nobody@example.com"
git config --global user.name "PR validation bot"
git add .
git commit -m "DO NOT PUSH BACK TO PR: Bump crate version"
env:
VERSION: ${{ steps.set-version.outputs.version }}

- name: If this step fails, change title of the PR to include (MAJOR) tag
uses: obi1kenobi/cargo-semver-checks-action@v2
with:
package: xmp_toolkit

read_xmp_example:
name: ReadXMP example
runs-on: ubuntu-latest
Expand Down

0 comments on commit c8f2e07

Please sign in to comment.