Skip to content

Commit ab2155a

Browse files
authored
fix(dependabot): pipeline misbehaviour on prettier self healing (#165)
* fix(dependabot): pipeline misbehaviour on prettier self healing * Update 99-auto-format-dependabot-prettier-updates.yml
1 parent 8975a50 commit ab2155a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
run: |
4242
git config --global user.name 'github-actions[bot]'
4343
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
44+
45+
# Checkout the PR branch (already done by actions/checkout)
46+
git checkout ${{ github.head_ref }} # This ensures we're on the PR branch
47+
4448
git add .
4549
git commit -m "Auto-format codebase with Prettier" || echo "No changes to commit"
46-
git push origin HEAD:${{ github.head_ref }}
50+
git push origin HEAD:${{ github.head_ref }} # Push back to the same PR branch

0 commit comments

Comments
 (0)