From c8f2e071975a2b0368ea3831299850cee1c80f07 Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Fri, 30 Aug 2024 09:14:45 -0700 Subject: [PATCH] Remove version bump check. Should now be covered by release-plz --- .github/workflows/ci.yml | 49 ---------------------------------------- 1 file changed, 49 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd9cb4e..ae0ca5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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<> "$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