Fix checkout action arg fetch-depth (#18436)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-12-28 20:01:08 +01:00 committed by GitHub
parent a8548fd3b6
commit 6d4b2aff8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,11 +36,11 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4
with:
# Depth 0 required for publishing to capture full author history
# Fetch depth 0 required for publishing to capture full author history
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
ref: ${{ env.GITHUB_REF }}
depth: ${{ github.event_name == 'push' && 0 || 1 }}
fetch-depth: ${{ github.event_name == 'push' && 0 || 1 }}
- name: Set up Python
uses: actions/setup-python@v5
with: