Skip to content

Commit

Permalink
Fix stylish-haskell workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Jun 22, 2023
1 parent 51f0f3a commit 77d470d
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 77d470d

Please sign in to comment.