Skip to content

Commit 3c15af6

Browse files
committed
refactor: build.yml
1 parent 8c9e700 commit 3c15af6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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}
@@ -45,10 +44,9 @@ jobs:
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}"

0 commit comments

Comments
 (0)