Skip to content

Commit 17cb355

Browse files
authored
Update 99-auto-format-dependabot-prettier-updates.yml
1 parent 3f9126a commit 17cb355

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/99-auto-format-dependabot-prettier-updates.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
git config --global user.name 'github-actions[bot]'
4646
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4747
48+
# Checkout the PR branch (already done by actions/checkout)
49+
git checkout ${{ github.head_ref }} # This ensures we're on the PR branch
50+
4851
git add .
4952
git commit --all -m "Auto-format codebase with Prettier" || echo "No changes to commit"
5053
git push origin HEAD:${{ github.head_ref }} # Push back to the same PR branch

0 commit comments

Comments
 (0)