mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Use $BASE_BRANCH instead of master (#7)
* Use $BASE_BRANCH instead of master * Set master as default to $BASE_BRANCH
This commit is contained in:
parent
7083c85b5f
commit
46b59760fc
@ -74,5 +74,5 @@ echo "Deploying to GitHub..." && \
|
||||
git add -f $FOLDER && \
|
||||
|
||||
git commit -m "Deploying to ${BRANCH} - $(date +"%T")" && \
|
||||
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER master`:$BRANCH --force && \
|
||||
echo "Deployment succesful!"
|
||||
git push $REPOSITORY_PATH `git subtree split --prefix $FOLDER ${BASE_BRANCH:-master}`:$BRANCH --force && \
|
||||
echo "Deployment succesful!"
|
||||
|
Loading…
Reference in New Issue
Block a user