We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252db2c commit 27711e8Copy full SHA for 27711e8
github-cli.sh
@@ -69,10 +69,11 @@ create_tag(){
69
git commit -a -m "Releasing ${APP_VERSION}" || true
70
git tag ${APP_VERSION}
71
72
- REMOTE="https://${REPO_TOKEN}@github.com/${USERNAME}/${REPOSITORY}.git"
73
- git push "$REMOTE" "$CURRENT_BRANCH" --tags
+ local REMOTE="https://${REPO_TOKEN}@github.com/${USERNAME}/${REPOSITORY}.git"
+ local LAST_COMMIT=$(git log --oneline | awk '{print $1}' | head -n1)
74
+ git push "$REMOTE" "$LAST_COMMIT:$CURRENT_BRANCH" --tags
75
git status
- echo "> Pushed" >&2
76
+ echo "> Pushed ${LAST_COMMIT} to ${CURRENT_BRANCH}" >&2
77
}
78
79
USERNAME="$2"
0 commit comments