Skip to content

Commit 4ba5488

Browse files
committed
Run Ormolu in separate GitHub Action
1 parent dbae020 commit 4ba5488

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
- name: Update the Cabal index
3636
run: cabal update
3737

38-
- name: Check if site.hs is formatted using ormolu
39-
uses: mrkkrp/ormolu-action@v6
40-
with:
41-
pattern: |
42-
**/site.hs
43-
4438
- name: Build with Hakyll
4539
working-directory: message-index
4640
run: cabal run site build

.github/workflows/deploy2.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
- name: Update the Cabal index
3636
run: cabal update
3737

38-
- name: Check if site.hs is formatted using ormolu
39-
uses: mrkkrp/ormolu-action@v6
40-
with:
41-
pattern: |
42-
**/site.hs
43-
4438
- name: Build with Hakyll
4539
working-directory: message-index
4640
run: cabal run site build

.github/workflows/ormolu.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ormolu
2+
3+
on:
4+
push:
5+
paths:
6+
- '**/site.hs'
7+
branches:
8+
- main
9+
pull_request:
10+
paths:
11+
- '**/site.hs'
12+
types:
13+
- opened
14+
- synchronize
15+
- reopened
16+
17+
jobs:
18+
ormolu:
19+
name: Ormolu
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Check if site.hs is formatted using ormolu
24+
uses: mrkkrp/ormolu-action@v11
25+
with:
26+
pattern: |
27+
**/site.hs

.github/workflows/pullrequest-ci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ jobs:
3333
- name: Update the Cabal index
3434
run: cabal update
3535

36-
- name: Check if site.hs is formatted using ormolu
37-
uses: mrkkrp/ormolu-action@v6
38-
with:
39-
pattern: |
40-
**/site.hs
41-
4236
- name: Build with Hakyll
4337
working-directory: message-index
4438
run: cabal run site build

0 commit comments

Comments
 (0)