ref:${{ github.head_ref || github.ref_name }}# Use the branch name or PR branch
fetch-depth:0
repository:${{ github.event.pull_request.head.repo.full_name || github.repository }}# Use the forked repository if available, otherwise the main repository
ref:${{ github.event.pull_request.head.ref || github.ref_name }}# Use the PR branch name if available, otherwise the branch name
fetch-depth:0# Fetch all history for all branches and tags