diff --git a/.github/workflows/haskell.yml b/.github/workflows/haskell.yml index c343990b060..aea1bc5aa8b 100644 --- a/.github/workflows/haskell.yml +++ b/.github/workflows/haskell.yml @@ -112,7 +112,15 @@ jobs: REF=a31ac75 curl -L https://github.com/input-output-hk/cardano-mainnet-mirror/tarball/$REF -o mainnet-mirror.tgz tar -xzf mainnet-mirror.tgz - mv input-output-hk-cardano-mainnet-mirror-$REF/epochs . + if [ "$?" == 0 ]; then + mv input-output-hk-cardano-mainnet-mirror-$REF/epochs . + else + git clone https://github.com/input-output-hk/cardano-mainnet-mirror + cd cardano-mainnet-mirror + git checkout $REF + mv epochs .. + cd .. + fi - name: Run tests run: |