From 2a750757b759ec1a0e31f0ec3efb73831840abc4 Mon Sep 17 00:00:00 2001 From: Junhao Liao Date: Sun, 22 Dec 2024 06:48:02 -0500 Subject: [PATCH] Specify pushing to branch; wrap new-branch-name & push-ref with quotes. --- .github/workflows/publish-npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 3ca35883..67dbe43c 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -60,5 +60,5 @@ jobs: - name: "Create and push branch" run: | - git checkout -b ${{github.ref_name}} - git push origin ${{github.ref_name}} + git checkout -b "${{github.ref_name}}" + git push origin "refs/heads/${{github.ref_name}}"