Fix Docs depth: 1 missing authors (#18434)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
93dc01619b
commit
a8548fd3b6
1 changed files with 4 additions and 4 deletions
8
.github/workflows/docs.yml
vendored
8
.github/workflows/docs.yml
vendored
|
|
@ -33,16 +33,14 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_REF: ${{ github.head_ref || github.ref }}
|
GITHUB_REF: ${{ github.head_ref || github.ref }}
|
||||||
steps:
|
steps:
|
||||||
- name: Git config
|
|
||||||
run: |
|
|
||||||
git config --global user.name "UltralyticsAssistant"
|
|
||||||
git config --global user.email "web@ultralytics.com"
|
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
# Depth 0 required for publishing to capture full author history
|
||||||
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
|
||||||
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
ref: ${{ env.GITHUB_REF }}
|
ref: ${{ env.GITHUB_REF }}
|
||||||
|
depth: ${{ github.event_name == 'push' && 0 || 1 }}
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
|
|
@ -56,6 +54,8 @@ jobs:
|
||||||
- name: Update Docs Reference Section and Push Changes
|
- name: Update Docs Reference Section and Push Changes
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
|
git config --global user.name "UltralyticsAssistant"
|
||||||
|
git config --global user.email "web@ultralytics.com"
|
||||||
python docs/build_reference.py
|
python docs/build_reference.py
|
||||||
git pull origin "$GITHUB_REF"
|
git pull origin "$GITHUB_REF"
|
||||||
git add .
|
git add .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue