From 357b101c8fc406e61b3e06711b0108cf41bcc3bf Mon Sep 17 00:00:00 2001 From: Nikolay Yakimov Date: Sat, 18 Jan 2025 17:17:52 +0300 Subject: [PATCH] [CI] Minor GHA code clean-up --- .github/workflows/haskell.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index 261a6bb..d46e4f4 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -65,14 +65,8 @@ jobs: id: get_version run: | cd pandoc-crossref-${{runner.os}}-${{runner.arch}}/ - case "${{runner.os}}-${{runner.arch}}" in - Windows) - VERSION="$(./pandoc-crossref.exe --version)" - ;; - *) chmod +x pandoc-crossref - VERSION="$(./pandoc-crossref --version)" - ;; - esac + chmod +x pandoc-crossref + VERSION="$(./pandoc-crossref --version)" echo "$VERSION" echo "$VERSION" > version.txt - uses: actions/upload-artifact@v4 @@ -81,9 +75,9 @@ jobs: path: pandoc-crossref-${{runner.os}}-${{runner.arch}} - shell: bash run: | - rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pandoc-crossref-* - rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pandoc-crossr_-* - rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pndc-crssrf-* + rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pandoc-crossref-* || true + rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pandoc-crossr_-* || true + rm -rvf .cabal-store/ghc-${{matrix.ghcver}}/pndc-crssrf-* || true build-nix: runs-on: ubuntu-latest