diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 756b14a..8b9d3dd 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -15,7 +15,8 @@ jobs: uses: actions/checkout@v3 with: # Make sure the actual branch is checked out when running on pull requests - ref: ${{ github.head_ref || github.ref }} + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} # This is important to fetch the changes to the previous commit fetch-depth: 0