Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/check-semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,29 +66,29 @@ jobs:
echo "PRDOC_EXTRA_ARGS=--max-bump minor" >> $GITHUB_ENV

- name: Echo Skip
if: ${{ contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
run: echo "Skipping this PR because it is labeled as R0-silent."
if: ${{ contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
run: echo "Skipping this PR because it is labeled as R0-no-crate-publish-required."

- name: Rust Cache
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
with:
cache-on-failure: true

- name: Rust compilation prerequisites
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
run: |
rustup default $TOOLCHAIN
rustup target add wasm32-unknown-unknown --toolchain $TOOLCHAIN
rustup component add rust-src --toolchain $TOOLCHAIN

- name: Install parity-publish
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
# Set the target dir to cache the build.
run: CARGO_TARGET_DIR=./target/ cargo install [email protected] --locked -q

- name: Get original PR number
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
shell: bash
env:
PR_TITLE: ${{ github.event.pull_request.title }}
Expand All @@ -108,7 +108,7 @@ jobs:
echo "PR_NUMBER=$original_pr_number" >> $GITHUB_ENV

- name: Check semver
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-no-crate-publish-required') }}
env:
PRDOC_EXTRA_ARGS: ${{ env.PRDOC_EXTRA_ARGS }}
PR: ${{ env.PR_NUMBER }}
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:

exit 1
fi

# Only enforce SemVer restrictions for backports targeting stable branches
if [[ "$BASE_BRANCH" != stable* ]]; then
echo "ℹ️ Branch '$BASE_BRANCH' is not a stable branch. Skipping SemVer backport-specific enforcements."
Expand Down
Loading
Loading