mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Update entrypoint.sh
This commit is contained in:
parent
92a59fd352
commit
3ea85cffd5
@ -45,7 +45,7 @@ REPOSITORY_PATH="https://${ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" &&
|
|||||||
|
|
||||||
# Checks to see if the remote exists prior to deploying.
|
# Checks to see if the remote exists prior to deploying.
|
||||||
# If the branch doesn't exist it gets created here as an orphan.
|
# If the branch doesn't exist it gets created here as an orphan.
|
||||||
if [ `git ls-remote --heads $REPOSITORY_PATH $BRANCH | wc -l` = false ]
|
if [ "$(git ls-remote --heads "$REPOSITORY_PATH" "$BRANCH" | wc -l)" -eq 0 ];
|
||||||
then
|
then
|
||||||
echo "Creating remote branch ${BRANCH} as it doesn't exist..."
|
echo "Creating remote branch ${BRANCH} as it doesn't exist..."
|
||||||
git checkout "${BASE_BRANCH:-master}" && \
|
git checkout "${BASE_BRANCH:-master}" && \
|
||||||
|
Loading…
Reference in New Issue
Block a user