From 571b1d5092ee18b9ed0828f1cbc834f4aece3363 Mon Sep 17 00:00:00 2001 From: Janek Rahrt Date: Tue, 19 Oct 2021 10:19:38 +0200 Subject: [PATCH] fix: ci git push --- .github/workflows/node.js.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b8ca47a9f..60952ce04 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -37,4 +37,9 @@ jobs: git config user.name "Docs Bot" git add --force -- docs/README.md git commit -m "docs: add generated docs" - git push + - name: Push to git branch for PR + if: ${{ github.head_ref != '' }} + run: git push origin HEAD:${{ github.head_ref }} + - name: Push to git branch for branch + if: ${{ github.head_ref == '' }} + run: git push