Skip to content

Commit 571b1d5

Browse files
committed
fix: ci git push
1 parent 3760687 commit 571b1d5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,9 @@ jobs:
3737
git config user.name "Docs Bot"
3838
git add --force -- docs/README.md
3939
git commit -m "docs: add generated docs"
40-
git push
40+
- name: Push to git branch for PR
41+
if: ${{ github.head_ref != '' }}
42+
run: git push origin HEAD:${{ github.head_ref }}
43+
- name: Push to git branch for branch
44+
if: ${{ github.head_ref == '' }}
45+
run: git push

0 commit comments

Comments
 (0)