Skip to content

Commit 85f6539

Browse files
committed
try using booleans instead
1 parent 0674b81 commit 85f6539

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: .github/workflows/ci.yaml

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
github.repository == 'xarray-contrib/xarray-array-testing'
2121
&& (github.event_name == 'push' || github.event_name == 'pull_request')
2222
outputs:
23-
triggered: ${{ steps.detect-trigger.outputs.trigger-found }}
23+
triggered: |
24+
${{
25+
steps.detect-trigger.outputs.trigger-found == 'true'
26+
|| contains(github.event.pull_request.labels.*.name, 'skip-ci')
27+
}}
2428
steps:
2529
- uses: actions/checkout@v4
2630
with:
@@ -35,9 +39,7 @@ jobs:
3539
name: ${{ matrix.os }} py${{ matrix.python-version }}
3640
runs-on: ${{ matrix.os }}
3741
needs: detect-ci-trigger
38-
if: |
39-
needs.detect-ci-trigger.outputs.triggered == 'false'
40-
|| contains(github.event.pull_request.labels.*.name, 'skip-ci')
42+
if: ! needs.detect-ci-trigger.outputs.triggered
4143

4244
env:
4345
FORCE_COLOR: 3

0 commit comments

Comments
 (0)