Skip to content

Commit

Permalink
ci: fixed deploy.sh for Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Dec 21, 2020
1 parent 70c8775 commit 6ada76c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ else
fi

BRANCH=""
if [[ ! -z "${TRAVIS_BRANCH}" ]]; then
if [[ -n "${TRAVIS_BRANCH}" ]]; then
BRANCH=$TRAVIS_BRANCH
elif [[ ! -z "${APPVEYOR_REPO_BRANCH}" ]]; then
elif [[ -n "${APPVEYOR_REPO_BRANCH}" ]]; then
BRANCH=$APPVEYOR_REPO_BRANCH
else
echo "TRAVIS_BRANCH or APPVEYOR_REPO_BRANCH env not found"
elif [[ -n "${GITHUB_REF}" ]]; then
BRANCH=${GITHUB_REF##*/}
else
echo "TRAVIS_BRANCH, APPVEYOR_REPO_BRANCH or GITHUB_SHA env not found"
exit 3
fi

Expand Down

0 comments on commit 6ada76c

Please sign in to comment.