Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0e3ccb

Browse files
committed
Set pipefail when running flake8 linter.
This ensures that the lint will fail if flake8 is broken, otherwise default bash behaviour is to ignore it, if reviewdog exits cleanly.
1 parent f71ec63 commit e0e3ccb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/reviewdog.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
env:
2929
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
run: |
31+
set -o pipefail
3132
flake8 --docstring-convention=all | \
3233
reviewdog -f=pep8 -name=flake8 \
3334
-tee -reporter=github-check -filter-mode nofilter

0 commit comments

Comments
 (0)