Skip to content

Commit

Permalink
Merge pull request #41 from input-output-hk/mgalazyn/fix/github-stylish
Browse files Browse the repository at this point in the history
Fix stylish haskell in github action workflow
  • Loading branch information
newhoggy authored Jun 23, 2023
2 parents 89cdd92 + a150098 commit f6166e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-stylish-haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v3

- name: Run stylish-haskell over all Haskell files
- name: Run stylish-haskell over all Haskell files (always succeeds)
run: |
git add .
git stash
Expand All @@ -66,7 +66,7 @@ jobs:
git add .
git stash
git fetch origin ${{ github.base_ref }} --unshallow
for x in $(git diff --name-only ${{ github.base_ref }} HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do
for x in $(git diff --name-only origin/${{ github.base_ref }}..HEAD ${{ env.STYLISH_HASKELL_PATHS }}); do
if [ "${x##*.}" == "hs" ]; then
stylish-haskell -i $x
fi
Expand Down

0 comments on commit f6166e6

Please sign in to comment.