Skip to content

Commit d12a5ec

Browse files
committed
docs: use GitHub Actions native if conditions instead of bash
- Replace bash conditional logic with GitHub Actions if statements - Use proper syntax: if: steps.test.outputs.triggered == 'true' - Split into separate steps for cleaner conditional execution - Follows GitHub Actions best practices for conditional workflows
1 parent ff2341a commit d12a5ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ Has the action been triggered by path changes? \[true|false\]
204204
triggers: ('frontend/')
205205
206206
- name: Check if tests were triggered
207-
run: |
208-
if [ "${{ steps.test.outputs.triggered }}" = "true" ]; then
209-
echo "✅ Tests were triggered by path changes"
210-
else
211-
echo "ℹ️ Tests were not triggered (no matching path changes)"
212-
fi
207+
if: steps.test.outputs.triggered == 'true'
208+
run: echo "✅ Tests were triggered by path changes"
209+
210+
- name: Tests not triggered
211+
if: steps.test.outputs.triggered != 'true'
212+
run: echo "ℹ️ Tests were not triggered (no matching path changes)"
213213
```
214214

215215
# Sonar Project Token

0 commit comments

Comments
 (0)