Skip to content

Commit

Permalink
fix: add checkout ref to pr's ref
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman2301 committed Nov 1, 2024
1 parent 92a8eb5 commit 5b2d48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ jobs:
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
# This is important to fetch the changes to the previous commit
fetch-depth: 0


- name: Prettier Action
uses: creyD/[email protected]
with:
Expand Down

0 comments on commit 5b2d48f

Please sign in to comment.