Skip to content

Commit

Permalink
Don't fail on unset CI_COMMIT_BRANCH
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Mar 12, 2021
1 parent 310969f commit df66172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ ghcup set cabal ${CABAL_VERSION}
cabal --version
ghc --version

# This might happen when running on Circle CI or during tags
CI_COMMIT_BRANCH=${CI_COMMIT_BRANCH:-no_branch_set_by_ci}

# File may exist as part of a dist.tar.zst
if [ ! -f cabal.project.local ]; then
cp .ci/cabal.project.local .
Expand Down

0 comments on commit df66172

Please sign in to comment.