-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Skip SemVer on R0-silent and update docs (#6285)
Changes: - Make R0-silent not run the semver check again. Originally I thought this would be good to have a bullet-proof check, but it now often triggers when CI or unrelated files are changed. In the end, the developer has to make the right choice here - and always will need to. So bringing back the R0 label gives more power to the devs and should increase dev velocity. We still need to ensure that every use of this label is well understood, and not just used out of lazyness. - Fix `/cmd prdoc` bump levels - Update docs --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]>
- Loading branch information
Showing
4 changed files
with
97 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Check semver | |
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
workflow_dispatch: | ||
merge_group: | ||
|
||
|
@@ -62,21 +62,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." | ||
|
||
- name: Rust Cache | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }} | ||
uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5 | ||
with: | ||
cache-on-failure: true | ||
|
||
- name: Rust compilation prerequisites | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }} | ||
run: | | ||
rustup default $TOOLCHAIN | ||
rustup component add rust-src --toolchain $TOOLCHAIN | ||
- name: install parity-publish | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }} | ||
# Set the target dir to cache the build. | ||
run: CARGO_TARGET_DIR=./target/ cargo install [email protected] --locked -q | ||
|
||
- name: check semver | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'R0-silent') }} | ||
run: | | ||
if [ -z "$PR" ]; then | ||
echo "Skipping master/merge queue" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ on: | |
required: true | ||
options: | ||
- "TODO" | ||
- "no_change" | ||
- "none" | ||
- "patch" | ||
- "minor" | ||
- "major" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters