mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2024-12-06 02:09:04 +00:00
Try to fix that push command
This commit is contained in:
parent
12282205b7
commit
ba1c2a6047
@ -27,6 +27,8 @@ then
|
|||||||
|
|
||||||
: ${PUSH_BRANCH:=`echo "$GITHUB_HEAD_REF" | awk -F / '{ print $3 }' `}
|
: ${PUSH_BRANCH:=`echo "$GITHUB_HEAD_REF" | awk -F / '{ print $3 }' `}
|
||||||
|
|
||||||
|
git switch -c $PUSH_BRANCH
|
||||||
|
|
||||||
# Switch to branch from current Workflow run
|
# Switch to branch from current Workflow run
|
||||||
git checkout $PUSH_BRANCH
|
git checkout $PUSH_BRANCH
|
||||||
|
|
||||||
@ -34,7 +36,7 @@ then
|
|||||||
|
|
||||||
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUT_COMMIT_AUTHOR_EMAIL>"
|
git commit -m "$INPUT_COMMIT_MESSAGE" --author="$INPUT_COMMIT_AUTHOR_NAME <$INPUT_COMMIT_AUTHOR_EMAIL>"
|
||||||
|
|
||||||
git push --set-upstream origin "HEAD:$PUSH_BRANCH"
|
git push --set-upstream origin $PUSH_BRANCH
|
||||||
else
|
else
|
||||||
echo "Working tree clean. Nothing to commit."
|
echo "Working tree clean. Nothing to commit."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user