diff --git a/.github/workflows/check-version.yml b/.github/workflows/check-version.yml index e32581f2e2d..fbaae5f202d 100644 --- a/.github/workflows/check-version.yml +++ b/.github/workflows/check-version.yml @@ -12,7 +12,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v6 with: - ref: ${{ github.head_ref }} + ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 - name: Setup Node.js