Skip to content

Commit c422d8b

Browse files
authored
ci: improve workflow-stopper ux (#6632)
PR addresses #6265 (comment) cc paritytech/ci_cd#1084
1 parent e709c9f commit c422d8b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/build-misc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
forklift cargo check -p rococo-runtime
4545
forklift cargo check -p polkadot-test-runtime
4646
- name: Stop all workflows if failed
47-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
47+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
4848
uses: ./.github/actions/workflow-stopper
4949
with:
5050
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -73,7 +73,7 @@ jobs:
7373
cd ./substrate/bin/utils/subkey
7474
forklift cargo build --locked --release
7575
- name: Stop all workflows if failed
76-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
76+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
7777
uses: ./.github/actions/workflow-stopper
7878
with:
7979
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

.github/workflows/check-frame-omni-bencher.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
forklift cargo build --locked --quiet --release -p asset-hub-westend-runtime --features runtime-benchmarks
4242
forklift cargo run --locked --release -p frame-omni-bencher --quiet -- v1 benchmark pallet --runtime target/release/wbuild/asset-hub-westend-runtime/asset_hub_westend_runtime.compact.compressed.wasm --all --steps 2 --repeat 1 --quiet
4343
- name: Stop all workflows if failed
44-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
44+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
4545
uses: ./.github/actions/workflow-stopper
4646
with:
4747
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -99,7 +99,7 @@ jobs:
9999
echo "Running command: $cmd"
100100
eval "$cmd"
101101
- name: Stop all workflows if failed
102-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
102+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
103103
uses: ./.github/actions/workflow-stopper
104104
with:
105105
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

.github/workflows/checks-quick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
id: required
3131
run: cargo +nightly fmt --all -- --check
3232
- name: Stop all workflows if failed
33-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
33+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
3434
uses: ./.github/actions/workflow-stopper
3535
with:
3636
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
cargo clippy --all-targets --locked --workspace --quiet
3737
cargo clippy --all-targets --all-features --locked --workspace --quiet
3838
- name: Stop all workflows if failed
39-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
39+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
4040
uses: ./.github/actions/workflow-stopper
4141
with:
4242
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -62,7 +62,7 @@ jobs:
6262
# experimental code may rely on try-runtime and vice-versa
6363
forklift cargo check --locked --all --features try-runtime,experimental --quiet
6464
- name: Stop all workflows if failed
65-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
65+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
6666
uses: ./.github/actions/workflow-stopper
6767
with:
6868
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -91,7 +91,7 @@ jobs:
9191
./check-features-variants.sh
9292
cd -
9393
- name: Stop all workflows if failed
94-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
94+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
9595
uses: ./.github/actions/workflow-stopper
9696
with:
9797
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
3131
- name: Stop all workflows if failed
32-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
32+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
3333
uses: ./.github/actions/workflow-stopper
3434
with:
3535
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -69,7 +69,7 @@ jobs:
6969
retention-days: 1
7070
if-no-files-found: error
7171
- name: Stop all workflows if failed
72-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
72+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
7373
uses: ./.github/actions/workflow-stopper
7474
with:
7575
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

.github/workflows/tests-linux-stable.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: required
3838
run: WASM_BUILD_NO_COLOR=1 forklift cargo test -p staging-node-cli --release --locked -- --ignored
3939
- name: Stop all workflows if failed
40-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
40+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
4141
uses: ./.github/actions/workflow-stopper
4242
with:
4343
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -63,7 +63,7 @@ jobs:
6363
id: required
6464
run: forklift cargo nextest run --workspace --features runtime-benchmarks benchmark --locked --cargo-profile testnet --cargo-quiet
6565
- name: Stop all workflows if failed
66-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
66+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
6767
uses: ./.github/actions/workflow-stopper
6868
with:
6969
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -113,7 +113,7 @@ jobs:
113113
if: ${{ matrix.partition == '1/3' }}
114114
run: forklift cargo nextest run -p sp-api-test --features enable-staging-api --cargo-quiet
115115
- name: Stop all workflows if failed
116-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
116+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
117117
uses: ./.github/actions/workflow-stopper
118118
with:
119119
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}
@@ -155,7 +155,7 @@ jobs:
155155
--filter-expr " !test(/all_security_features_work/) - test(/nonexistent_cache_dir/)" \
156156
--partition count:${{ matrix.partition }} \
157157
- name: Stop all workflows if failed
158-
if: ${{ failure() && steps.required.conclusion == 'failure' }}
158+
if: ${{ failure() && steps.required.conclusion == 'failure' && !github.event.pull_request.head.repo.fork }}
159159
uses: ./.github/actions/workflow-stopper
160160
with:
161161
app-id: ${{ secrets.WORKFLOW_STOPPER_RUNNER_APP_ID }}

0 commit comments

Comments
 (0)