mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Minor change
This commit is contained in:
parent
a2d05161e9
commit
2f61184ad3
@ -40,11 +40,9 @@ git init && \
|
||||
git config --global user.email "${COMMIT_EMAIL}" && \
|
||||
git config --global user.name "${COMMIT_NAME}" && \
|
||||
|
||||
## Checks to see if the remote exists prior to deploying
|
||||
REMOTE_BRANCH = eval `git ls-remote --heads "https://${ACCESS_TOKEN}@github.com:JamesIves/reddit-viewer.git" docs`
|
||||
|
||||
# Checks to see if the remote exists prior to deploying.
|
||||
# If the branch doesn't exist it gets created here as an orphan.
|
||||
if [[ -z $REMOTE_BRANCH ]]
|
||||
if [ `git ls-remote --heads "https://${ACCESS_TOKEN}@github.com:JamesIves/reddit-viewer.git" $BRANCH` ]
|
||||
then
|
||||
echo "Creating remote branch ${BRANCH} as it doesn't exist..."
|
||||
git checkout --orphan $BRANCH && \
|
||||
|
Loading…
Reference in New Issue
Block a user