Skip to content

Commit 14355fb

Browse files
committed
Move pre-commit action back to original spot
1 parent a74b699 commit 14355fb

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@ jobs:
1515
PATTERNS: |
1616
+(src|exe|test|ghcide|plugins|hls-plugin-api|hie-compat|hls-graph|hls-test-utils)/**/*.hs
1717
18-
- uses: actions/setup-python@v4
19-
if: env.GIT_DIFF
20-
- uses: pre-commit/action@v3.0.0
21-
with:
22-
extra_args: --files ${{ env.GIT_DIFF }}
23-
if: env.GIT_DIFF
24-
2518
- uses: ./.github/actions/setup-build
2619
with:
2720
os: ${{ runner.os }}
@@ -53,3 +46,9 @@ jobs:
5346
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
5447
if: env.GIT_DIFF
5548

49+
- uses: actions/setup-python@v4
50+
if: env.GIT_DIFF
51+
- uses: pre-commit/action@v3.0.0
52+
with:
53+
extra_args: --files ${{ env.GIT_DIFF }}
54+
if: env.GIT_DIFF

0 commit comments

Comments
 (0)