@@ -33,22 +33,27 @@ jobs:
3333 runs-on : ubuntu-latest
3434 name : Check for 'skip-ci' label
3535 outputs :
36- skip_ci : ${{ steps.set-output.outputs.skip_ci }}
36+ skip_ci : ${{ steps.set-output.outputs.SKIP_CI }}
3737 steps :
38- - name : set skip var
38+ - name : check for skip-ci label
3939 id : set-output
4040 env :
4141 LABELS : ${{ toJson(github.event.pull_request.labels) }}
4242 run : |
43- LABELS=$(echo $LABELS | jq -r '.[].name')
4443 SKIP_CI="false"
44+ if [ -z $LABELS ]; then
45+ LABELS="none";
46+ else
47+ LABELS=$(echo $LABELS | jq -r '.[].name')
48+ fi
4549 for label in $LABELS; do
4650 if [ "$label" = "skip-ci" ]; then
4751 SKIP_CI="true"
4852 break
4953 fi
5054 done
5155 echo "::set-output name=skip_ci::$SKIP_CI"
56+
5257 target-branch-check :
5358 name : target-branch-check
5459 runs-on : ubuntu-latest
5863 run : test ${{ github.base_ref }} != "stable"
5964 release-tests-ubuntu :
6065 name : release-tests-ubuntu
61- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
66+ if : needs.check-labels .outputs.skip_ci != 'true'
6267 # Use self-hosted runners only on the sigp repo.
6368 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
6469 steps :
8489 run : sccache --show-stats
8590 release-tests-windows :
8691 name : release-tests-windows
87- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
92+ if : needs.check-labels .outputs.skip_ci != 'true'
8893 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }}
8994 steps :
9095 - uses : actions/checkout@v4
@@ -119,7 +124,7 @@ jobs:
119124 run : sccache --show-stats
120125 beacon-chain-tests :
121126 name : beacon-chain-tests
122- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
127+ if : needs.check-labels .outputs.skip_ci != 'true'
123128 # Use self-hosted runners only on the sigp repo.
124129 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
125130 env :
@@ -140,7 +145,7 @@ jobs:
140145 run : sccache --show-stats
141146 op-pool-tests :
142147 name : op-pool-tests
143- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
148+ if : needs.check-labels .outputs.skip_ci != 'true'
144149 runs-on : ubuntu-latest
145150 env :
146151 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -156,7 +161,7 @@ jobs:
156161 run : make test-op-pool
157162 network-tests :
158163 name : network-tests
159- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
164+ if : needs.check-labels .outputs.skip_ci != 'true'
160165 runs-on : ubuntu-latest
161166 env :
162167 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -172,7 +177,7 @@ jobs:
172177 run : make test-network
173178 slasher-tests :
174179 name : slasher-tests
175- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
180+ if : needs.check-labels .outputs.skip_ci != 'true'
176181 runs-on : ubuntu-latest
177182 env :
178183 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -188,7 +193,7 @@ jobs:
188193 run : make test-slasher
189194 debug-tests-ubuntu :
190195 name : debug-tests-ubuntu
191- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
196+ if : needs.check-labels .outputs.skip_ci != 'true'
192197 # Use self-hosted runners only on the sigp repo.
193198 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
194199 env :
@@ -213,7 +218,7 @@ jobs:
213218 run : sccache --show-stats
214219 state-transition-vectors-ubuntu :
215220 name : state-transition-vectors-ubuntu
216- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
221+ if : needs.check-labels .outputs.skip_ci != 'true'
217222 runs-on : ubuntu-latest
218223 steps :
219224 - uses : actions/checkout@v4
@@ -226,7 +231,7 @@ jobs:
226231 run : make run-state-transition-tests
227232 ef-tests-ubuntu :
228233 name : ef-tests-ubuntu
229- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
234+ if : needs.check-labels .outputs.skip_ci != 'true'
230235 # Use self-hosted runners only on the sigp repo.
231236 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }}
232237 env :
@@ -247,7 +252,7 @@ jobs:
247252 run : sccache --show-stats
248253 dockerfile-ubuntu :
249254 name : dockerfile-ubuntu
250- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
255+ if : needs.check-labels .outputs.skip_ci != 'true'
251256 runs-on : ubuntu-latest
252257 steps :
253258 - uses : actions/checkout@v4
@@ -257,7 +262,7 @@ jobs:
257262 run : docker run -t lighthouse:local lighthouse --version
258263 basic-simulator-ubuntu :
259264 name : basic-simulator-ubuntu
260- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
265+ if : needs.check-labels .outputs.skip_ci != 'true'
261266 runs-on : ubuntu-latest
262267 steps :
263268 - uses : actions/checkout@v4
@@ -270,7 +275,7 @@ jobs:
270275 run : cargo run --release --bin simulator basic-sim
271276 fallback-simulator-ubuntu :
272277 name : fallback-simulator-ubuntu
273- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
278+ if : needs.check-labels .outputs.skip_ci != 'true'
274279 runs-on : ubuntu-latest
275280 steps :
276281 - uses : actions/checkout@v4
@@ -283,7 +288,7 @@ jobs:
283288 run : cargo run --release --bin simulator fallback-sim
284289 doppelganger-protection-test :
285290 name : doppelganger-protection-test
286- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
291+ if : needs.check-labels .outputs.skip_ci != 'true'
287292 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }}
288293 env :
289294 # Enable portable to prevent issues with caching `blst` for the wrong CPU type
@@ -318,7 +323,7 @@ jobs:
318323 ./doppelganger_protection.sh success genesis.json
319324 execution-engine-integration-ubuntu :
320325 name : execution-engine-integration-ubuntu
321- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
326+ if : needs.check-labels .outputs.skip_ci != 'true'
322327 runs-on : ${{ github.repository == 'sigp/lighthouse' && fromJson('["self-hosted", "linux", "CI", "small"]') || 'ubuntu-latest' }}
323328 steps :
324329 - uses : actions/checkout@v4
@@ -378,7 +383,7 @@ jobs:
378383 run : cargo check --workspace
379384 cargo-udeps :
380385 name : cargo-udeps
381- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
386+ if : needs.check-labels .outputs.skip_ci != 'true'
382387 runs-on : ubuntu-latest
383388 steps :
384389 - uses : actions/checkout@v4
@@ -401,7 +406,7 @@ jobs:
401406 RUSTFLAGS : " "
402407 compile-with-beta-compiler :
403408 name : compile-with-beta-compiler
404- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
409+ if : needs.check-labels .outputs.skip_ci != 'true'
405410 runs-on : ubuntu-latest
406411 steps :
407412 - uses : actions/checkout@v4
@@ -413,7 +418,7 @@ jobs:
413418 run : make
414419 cli-check :
415420 name : cli-check
416- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
421+ if : needs.check-labels .outputs.skip_ci != 'true'
417422 runs-on : ubuntu-latest
418423 steps :
419424 - uses : actions/checkout@v4
@@ -428,7 +433,7 @@ jobs:
428433 # a PR is safe to merge. New jobs should be added here.
429434 test-suite-success :
430435 name : test-suite-success
431- if : needs.check-skip-ci-label .outputs.skip_ci != 'true'
436+ if : needs.check-labels .outputs.skip_ci != 'true'
432437 runs-on : ubuntu-latest
433438 needs : [
434439 ' target-branch-check' ,
0 commit comments