Skip to content

Commit

Permalink
Update Build pkgdown site.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderDevisscher committed Aug 23, 2024
1 parent 3aecf7b commit 06209cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/Build pkgdown site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 06209cf

Please sign in to comment.