diff --git a/.github/workflows/check-stylish-haskell.yml b/.github/workflows/check-stylish-haskell.yml index 6115e566ae..859b2941b4 100644 --- a/.github/workflows/check-stylish-haskell.yml +++ b/.github/workflows/check-stylish-haskell.yml @@ -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 @@ -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