From c9cf631fad24744a61e036bd20281722d7fcb5ae Mon Sep 17 00:00:00 2001 From: Salman Date: Fri, 1 Nov 2024 05:51:31 +0530 Subject: [PATCH] fix: add repo name --- .github/workflows/format.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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