Skip to content

Commit

Permalink
update typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Mar 10, 2021
1 parent 9ec6d82 commit b6bdd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/github/github_get_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export CURRENT_VERSION=$(git describe --tag --always --long | sed -e 's/\(.*\)-\
#get current branch name
echo "GITHUB_EVENT_NAME:${GITHUB_EVENT_NAME}"
echo "GITHUB_REF:${GITHUB_REF}"
if [[ "$GITHUB_EVENT_NAME" != "pull_request" ]]: then
if [[ "$GITHUB_EVENT_NAME" != "pull_request" ]]; then
echo "GIT_BRANCH=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV
fi
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]: then
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then
echo "GIT_BRANCH=$(echo ${GITHUB_HEAD_REF} | tr / -)" >> $GITHUB_ENV
fi
echo ::set-output name=GIT_BRANCH::${GIT_BRANCH}
Expand Down

0 comments on commit b6bdd56

Please sign in to comment.