commit 58d527ff90a1f0378ffc8c04eda72eb121bf602c
parent 1c8274fe022328f17d9667172fe7d9305b0d2189
Author: Eric Scouten <scouten@adobe.com>
Date: Wed, 7 Sep 2022 15:35:01 -0700
(IGNORE) Disable cargo-semver-checks step (#126)
Disable cargo-semver-checks step
Restore when https://github.com/obi1kenobi/cargo-semver-check/issues/122 is fixed.
Diffstat:
1 file changed, 57 insertions(+), 54 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -241,58 +241,61 @@ jobs:
version: latest
args: --all-targets --all-features
- version_bump:
- name: Ensure (MINOR) tag is used when making an API breaking change
- # Change all of these steps to (MAJOR) after 1.0 release
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
+ # TODO: Restore when https://github.com/obi1kenobi/cargo-semver-check/issues/122
+ # is fixed.
+
+ # version_bump:
+ # name: Ensure (MINOR) tag is used when making an API breaking change
+ # # Change all of these steps to (MAJOR) after 1.0 release
+ # runs-on: ubuntu-latest
+ # steps:
+ # - name: Checkout repository
+ # uses: actions/checkout@v3
+ # if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
- - name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
- with:
- toolchain: stable
- override: true
-
- - name: Get latest existing tag
- uses: actions-ecosystem/action-get-latest-tag@v1
- if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
- id: get-latest-tag
- with:
- semver_only: true
-
- - name: Set new version
- uses: paulhatch/semantic-version@v4.0.2
- id: set-version
- if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
- with:
- tag_prefix: "v"
- format: "${major}.${minor}.${patch}"
- major_pattern: "(MAJORXXXX)"
- minor_pattern: "(MINORXXXX)"
-
- - name: "Bump crate version (NOTE: Not pushed back to repo!)"
- if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
- run: |
- sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" sdk/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: Has (MINOR) tag been used in a previous commit?
- 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)" || :; }
-
- - 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)') }}
- with:
- crate-name: c2pa
+ # - name: Install Rust toolchain
+ # uses: actions-rs/toolchain@v1
+ # if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
+ # with:
+ # toolchain: stable
+ # override: true
+
+ # - name: Get latest existing tag
+ # uses: actions-ecosystem/action-get-latest-tag@v1
+ # if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
+ # id: get-latest-tag
+ # with:
+ # semver_only: true
+
+ # - name: Set new version
+ # uses: paulhatch/semantic-version@v4.0.2
+ # id: set-version
+ # if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
+ # with:
+ # tag_prefix: "v"
+ # format: "${major}.${minor}.${patch}"
+ # major_pattern: "(MAJORXXXX)"
+ # minor_pattern: "(MINORXXXX)"
+
+ # - name: "Bump crate version (NOTE: Not pushed back to repo!)"
+ # if: ${{ !contains(github.event.pull_request.title, '(MINOR)') }}
+ # run: |
+ # sed -i "s/^version = \"[^\"]*\"$/version = \"$VERSION\"/;" sdk/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: Has (MINOR) tag been used in a previous commit?
+ # 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)" || :; }
+
+ # - 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)') }}
+ # with:
+ # crate-name: c2pa