Skip to content

Commit cfba3d5

Browse files
committed
unsplit actions
partially reverts e4d208b
1 parent 85326c4 commit cfba3d5

3 files changed

Lines changed: 28 additions & 31 deletions

File tree

.github/workflows/check.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/daily.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,30 @@ jobs:
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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
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

0 commit comments

Comments
 (0)