Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit ac398c0

Browse files
committed
Update pre-commit GitHub action
1 parent 09f9e06 commit ac398c0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-python@v1
14-
- name: set PY
15-
run: echo "::set-env name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')"
16-
- uses: actions/cache@v1
17-
with:
18-
path: ~/.cache/pre-commit
19-
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
20-
- uses: pre-commit/[email protected]
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
- uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)