Skip to content

Commit 0de4335

Browse files
committed
test
1 parent 0b86a37 commit 0de4335

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,18 @@ jobs:
2323
- name: Lint
2424
run: yarn nx format:check --all
2525
continue-on-error: true # Continue even if the check fails
26+
- name: Check Lint Results
27+
id: lint_result_check
28+
run: |
29+
if [ $? -ne 0 ]; then
30+
echo "Linting failed, setting output..."
31+
echo "::set-output name=lint_failed::true"
32+
else
33+
echo "::set-output name=lint_failed::false"
34+
fi
35+
2636
- name: Auto-format and commit changes if needed
27-
if: ${{ steps.lint_check.conclusion == 'failure' }}
37+
if: ${{ steps.lint_result_check.outputs.lint_failed == 'true' }}
2838
run: |
2939
yarn nx format:write --all
3040
git config --global user.name "GitHub Actions"

0 commit comments

Comments
 (0)