File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1818 repos-incl : ${{ secrets.REPOS_INCL }}
1919 repos-skip : ${{ secrets.REPOS_SKIP }}
2020 lang-names : ${{ secrets.LANG_NAMES }}
21+ check :
22+ runs-on : ubuntu-latest
23+ steps :
24+ - uses : actions/checkout@v2
25+ - uses : actions/setup-python@v2
26+ - name : set PYSHA
27+ run : echo "PYSHA=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
28+ - uses : actions/cache@v1
29+ with :
30+ path : ~/.cache/pre-commit
31+ key : pre-commit|${{ env.PYSHA }}|${{ hashFiles('.pre-commit-config.yaml') }}
32+ - run : pip install -U pre-commit
33+ - uses : reviewdog/action-setup@v1
34+ - if : github.event_name != 'schedule'
35+ name : comment
36+ run : |
37+ if [[ $EVENT == pull_request ]]; then
38+ REPORTER=github-pr-review
39+ else
40+ REPORTER=github-check
41+ fi
42+ pre-commit run -a todo | reviewdog -efm="%f:%l: %m" -name=TODO -tee -reporter=$REPORTER -filter-mode nofilter
43+ pre-commit run -a flake8 | reviewdog -f=pep8 -name=flake8 -tee -reporter=$REPORTER -filter-mode nofilter
44+ env :
45+ REVIEWDOG_GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46+ EVENT : ${{ github.event_name }}
47+ - run : pre-commit run -a --show-diff-on-failure
Original file line number Diff line number Diff line change 2121 language : pygrep
2222 entry : TODO
2323 types : [text]
24- exclude : ^(.pre-commit-config.yaml|.github/workflows/check .yml)$
24+ exclude : ^(.pre-commit-config.yaml|.github/workflows/daily .yml)$
2525 args : [-i]
2626 - id : shfmt
2727 name : shfmt
You can’t perform that action at this time.
0 commit comments