Skip to content

Commit aac2bd1

Browse files
authored
Consistent definitions of if conditions (#276)
1 parent ce525f3 commit aac2bd1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ jobs:
267267
268268
main_job:
269269
needs: pre_job
270-
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
270+
if: needs.pre_job.outputs.should_skip != 'true'
271271
runs-on: ubuntu-latest
272272
steps:
273273
- run: echo "Running slow tests..." && sleep 30
@@ -288,7 +288,7 @@ jobs:
288288
with:
289289
cancel_others: 'false'
290290
paths: '["src/**", "dist/**"]'
291-
- if: ${{ steps.skip_check.outputs.should_skip != 'true' }}
291+
- if: steps.skip_check.outputs.should_skip != 'true'
292292
run: |
293293
echo "Run only if src/ or dist/ changed..." && sleep 30
294294
echo "Do other stuff..."
@@ -328,10 +328,10 @@ jobs:
328328
# been found) 'paths_result' outputs an empty object ('{}'). This can be easily intercepted in the if condition of a job
329329
# by checking the result of the "global" 'should_skip' output first.
330330
if: needs.pre_job.outputs.should_skip != 'true' || !fromJSON(needs.pre_job.outputs.paths_result).frontend.should_skip
331-
...
331+
# ...
332332
333333
backend:
334-
...
334+
# ...
335335
```
336336

337337
## How does it work?

0 commit comments

Comments
 (0)