mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06:00
Now checking if correctly to know if we should run commit taging or not
This commit is contained in:
parent
6404b153ed
commit
2fd88d9c07
@ -120,8 +120,8 @@ echo "[+] Pushing git commit"
|
|||||||
# --set-upstream: sets de branch when pushing to a branch that does not exist
|
# --set-upstream: sets de branch when pushing to a branch that does not exist
|
||||||
git push "https://$USER_NAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" --set-upstream "$TARGET_BRANCH"
|
git push "https://$USER_NAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" --set-upstream "$TARGET_BRANCH"
|
||||||
|
|
||||||
# Tag commit and push
|
# Tag commit and push if it is set
|
||||||
if [ -v "$COMMIT_TAG" ]
|
if [ ! -z "$COMMIT_TAG" ]
|
||||||
then
|
then
|
||||||
echo "[+] git tag"
|
echo "[+] git tag"
|
||||||
git tag $COMMIT_TAG
|
git tag $COMMIT_TAG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user