From 77d470d6c2fc17b6fc6e4f6b263d8692bf2d28e0 Mon Sep 17 00:00:00 2001 From: Mateusz Galazyn Date: Thu, 22 Jun 2023 17:19:49 +0200 Subject: [PATCH] Fix stylish-haskell workflow --- .github/workflows/check-stylish-haskell.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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