We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b86a37 commit 0de4335Copy full SHA for 0de4335
.github/workflows/lint.yml
@@ -23,8 +23,18 @@ jobs:
23
- name: Lint
24
run: yarn nx format:check --all
25
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
+
36
- name: Auto-format and commit changes if needed
- if: ${{ steps.lint_check.conclusion == 'failure' }}
37
+ if: ${{ steps.lint_result_check.outputs.lint_failed == 'true' }}
38
run: |
39
yarn nx format:write --all
40
git config --global user.name "GitHub Actions"
0 commit comments