We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17cb355 commit ed69befCopy full SHA for ed69bef
.github/workflows/99-auto-format-dependabot-prettier-updates.yml
@@ -10,7 +10,7 @@ jobs:
10
- name: Checkout code
11
uses: actions/checkout@v4
12
with:
13
- ref: ${{ github.ref }}
+ ref: ${{github.event.pull_request.head.ref}}
14
fetch-depth: 0
15
16
- name: Set up Node.js
@@ -45,9 +45,6 @@ jobs:
45
git config --global user.name 'github-actions[bot]'
46
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
47
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
-
51
git add .
52
git commit --all -m "Auto-format codebase with Prettier" || echo "No changes to commit"
53
git push origin HEAD:${{ github.head_ref }} # Push back to the same PR branch
0 commit comments