Skip to content

Commit

Permalink
CI stack: cabal sdist twice, to get garbage output out of the way
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Sep 22, 2021
1 parent a55ccce commit 180ce65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,12 @@ jobs:
startsWith(github.ref, 'refs/tags/v')
&& matrix.ghc == '9.0.1'
run: |
cabal sdist
export DIST_TGZ=$(cabal sdist | tail -1)
echo "DIST_TGZ=${DIST_TGZ}" >> ${GITHUB_ENV}
# Note: we do sdist twice because the first time it might print stuff like
# "Writing default configuration to /home/runner/.cabal/config"
# that spoils our `tail -1` hack.

- name: Source tarball release.
if: >-
Expand Down

0 comments on commit 180ce65

Please sign in to comment.