Skip to content

Commit ed69bef

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

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- name: Checkout code
1111
uses: actions/checkout@v4
1212
with:
13-
ref: ${{ github.ref }}
13+
ref: ${{github.event.pull_request.head.ref}}
1414
fetch-depth: 0
1515

1616
- name: Set up Node.js
@@ -45,9 +45,6 @@ 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-
5148
git add .
5249
git commit --all -m "Auto-format codebase with Prettier" || echo "No changes to commit"
5350
git push origin HEAD:${{ github.head_ref }} # Push back to the same PR branch

0 commit comments

Comments
 (0)