From 06209cf6c866781e79e18c36f4c146343284ad8d Mon Sep 17 00:00:00 2001 From: Sander Devisscher Date: Fri, 23 Aug 2024 18:37:57 +0200 Subject: [PATCH] Update Build pkgdown site.yaml #76 --- .github/workflows/Build pkgdown site.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/Build pkgdown site.yaml b/.github/workflows/Build pkgdown site.yaml index 790b728..4638da6 100644 --- a/.github/workflows/Build pkgdown site.yaml +++ b/.github/workflows/Build pkgdown site.yaml @@ -79,9 +79,10 @@ jobs: git add -A if ! git diff --cached --quiet; then git commit -m 'Build pkgdown site [skip ci]' - git pull --rebase origin ${{ github.head_ref }} - git push origin HEAD:${{ github.head_ref }} + # Extract the branch name from the full reference + BRANCH_NAME=${GITHUB_REF##*/} + git pull --rebase origin "$BRANCH_NAME" + git push origin HEAD:"$BRANCH_NAME" else echo "No changes to commit." fi -