77 pull_request :
88
99concurrency :
10- group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
10+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
1111 cancel-in-progress : true
1212
1313env :
1616
1717jobs :
1818 nextest :
19+ if : github.event_name == 'pull_request'
1920 uses : ./.github/workflows/nextest.yml
2021 with :
2122 profile : default
5354 force_orphan : true
5455
5556 doctest :
57+ if : github.event_name == 'pull_request'
5658 runs-on : parity-large-new
5759 timeout-minutes : 60
5860 steps :
@@ -74,13 +76,15 @@ jobs:
7476 - run : cargo test --workspace --doc
7577
7678 typos :
79+ if : github.event_name == 'pull_request'
7780 runs-on : ubuntu-latest
7881 timeout-minutes : 30
7982 steps :
8083 - uses : actions/checkout@v4
8184 - uses : crate-ci/typos@v1
8285
8386 clippy :
87+ if : github.event_name == 'pull_request'
8488 runs-on : ubuntu-latest
8589 timeout-minutes : 60
8690 steps :
@@ -107,6 +111,7 @@ jobs:
107111 RUSTFLAGS : -Dwarnings
108112
109113 rustfmt :
114+ if : github.event_name == 'pull_request'
110115 runs-on : ubuntu-latest
111116 timeout-minutes : 30
112117 steps :
@@ -117,6 +122,7 @@ jobs:
117122 - run : cargo fmt --all --check
118123
119124 forge-fmt :
125+ if : github.event_name == 'pull_request'
120126 runs-on : ubuntu-latest
121127 timeout-minutes : 30
122128 steps :
@@ -135,6 +141,7 @@ jobs:
135141 run : ./.github/scripts/format.sh --check
136142
137143 crate-checks :
144+ if : github.event_name == 'pull_request'
138145 runs-on : parity-large-new
139146 timeout-minutes : 90
140147 steps :
@@ -167,6 +174,7 @@ jobs:
167174 - run : cargo hack check -p substrate-runtime --each-feature --exclude-no-default-features
168175
169176 deny :
177+ if : github.event_name == 'pull_request'
170178 # Copy of ithacaxyz/ci/.github/workflows/deny.yml@main but without failing the CI
171179 name : cargo deny check
172180 runs-on : ubuntu-latest
@@ -184,8 +192,8 @@ jobs:
184192 run : cargo deny --all-features check all
185193
186194 ci-success :
195+ if : github.event_name == 'pull_request'
187196 runs-on : ubuntu-latest
188- if : always()
189197 needs :
190198 - nextest
191199 - docs
0 commit comments