Skip to content

Commit

Permalink
Fix tagger
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug authored Feb 13, 2021
1 parent 00288c1 commit 15a9eec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/github-deploy-phar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ git add --all .
git commit -m "Updated Psalm phar to commit ${GITHUB_SHA}"
git push --quiet origin master > /dev/null 2>&1

if [[ "$GITHUB_REF" != '' && "$GITHUB_REF" != 'refs/heads/master' ]] ; then
git tag "$GITHUB_REF"
git push origin "$GITHUB_REF"
tag=${GITHUB_REF/refs\/heads\//}

if [[ "$tag" != 'master' ]] ; then
git tag "$tag"
git push origin "$tag"
fi

0 comments on commit 15a9eec

Please sign in to comment.