Skip to content

Commit 3c07cf1

Browse files
committed
Move pre-commit block before building stylish-haskell
1 parent eaf9f2e commit 3c07cf1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ 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+
1825
- uses: ./.github/actions/setup-build
1926
with:
2027
os: ${{ runner.os }}
@@ -46,9 +53,3 @@ jobs:
4653
${{ inputs.cache-prefix }}${{ env.cache-name }}-${{ inputs.os }}-
4754
if: env.GIT_DIFF
4855

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)