File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -38,18 +38,12 @@ jobs:
38
38
with :
39
39
fetch-depth : 0
40
40
41
- - name : Check for Haskell file changes
42
- id : haskell-changes
41
+ - name : Parse oromolu version
42
+ working-directory : waspc
43
43
run : |
44
- if git diff --name-only origin/${{ github.base_ref }}..HEAD | grep -E 'waspc/.*\.hs$'; then
45
- echo "run=true" >> $GITHUB_OUTPUT
46
- else
47
- echo "run=false" >> $GITHUB_OUTPUT
48
- fi
49
-
50
- - uses : ./.github/actions/setup-haskell
51
- if : steps.haskell-changes.outputs.run == 'true'
52
-
53
- - working-directory : waspc
54
- if : steps.haskell-changes.outputs.run == 'true'
55
- run : ./run ormolu:check
44
+ echo "ORMOLU_VERSION=$(grep 'ormolu ==' dev-tool.project | sed 's/.*==\s*\([0-9.]*\).*/\1/')" >> $GITHUB_ENV
45
+
46
+ # `run-ormolu` versions > 15 require ormolu version >= 0.7.5.0
47
+ - uses : haskell-actions/run-ormolu@v15
48
+ with :
49
+ version : ${{ env.ORMOLU_VERSION }}
You can’t perform that action at this time.
0 commit comments