File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,13 @@ jobs:
2525 - name : Build Docs
2626 run : ' yarn run docs:build'
2727
28- - name : Push to Publish Branch
28+ - name : Push to Build Branch
2929 run : |
3030 git config --global user.name 'github-actions[bot]'
3131 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3232
3333 BRANCH=$(echo ${GITHUB_REF} | sed -e 's/refs\/heads\///')
3434 TARGET_BRANCH="build/${BRANCH}"
35- COMMIT_MSG=$(git log -1 --pretty=%B)
3635
3736 if git ls-remote --heads origin ${TARGET_BRANCH} | grep ${TARGET_BRANCH}; then
3837 git push origin --delete ${TARGET_BRANCH}
4544
4645 git checkout -b "${TARGET_BRANCH}"
4746 git add .
48- git commit -m "${COMMIT_MSG }"
47+ git commit -m "GitHub Actions Auto Build ${BRANCH }"
4948
5049 echo "Branch: ${BRANCH}"
5150 echo "Pushing to ${TARGET_BRANCH}"
52- echo "Commit Message: ${COMMIT_MSG}"
5351
5452 git push origin "${TARGET_BRANCH}"
You can’t perform that action at this time.
0 commit comments