Skip to content

Commit

Permalink
Fix windows run
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby committed Feb 5, 2023
1 parent 222a028 commit 344557c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@ jobs:
run: |
pip install .
lintrunner init
- name: Run lintrunner on all files
- name: Run lintrunner on all files - Linux
if: matrix.os != 'windows-latest'
run: |
set +e
if ! lintrunner -v --force-color --all-files --tee-json=lint.json; then
echo ""
echo -e "\e[1m\e[36mYou can reproduce these results locally by using \`lintrunner -m main\`.\e[0m"
exit 1
fi
- name: Run lintrunner on all files - Windows
if: matrix.os == 'windows-latest'
run: lintrunner -v --force-color --all-files
- name: Produce SARIF
if: always() && matrix.os == 'ubuntu-latest'
run: |
Expand Down

0 comments on commit 344557c

Please sign in to comment.