Skip to content

Commit 7d81490

Browse files
committed
Update actions checkout to only one version
1 parent b0a73c5 commit 7d81490

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/python_build_docs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v4
2828
with:
29-
fetch-depth: 0 # Fetch full history for mike
29+
fetch-depth: 1
3030

3131
- name: Set up Python
3232
uses: actions/setup-python@v4
@@ -56,6 +56,9 @@ jobs:
5656
echo "alias=$ALIAS" >> $GITHUB_OUTPUT
5757
echo "Dev deployment - Version: $VERSION, Alias: $ALIAS"
5858
59+
- name: Fetch gh-pages branch
60+
run: git fetch origin gh-pages --depth=1
61+
5962
- name: Configure Git
6063
run: |
6164
git config --global user.name "github-actions[bot]"
@@ -78,7 +81,7 @@ jobs:
7881
- name: Checkout code
7982
uses: actions/checkout@v4
8083
with:
81-
fetch-depth: 0 # Fetch full history for mike
84+
fetch-depth: 1
8285

8386
- name: Set up Python
8487
uses: actions/setup-python@v4
@@ -89,6 +92,9 @@ jobs:
8992
run: |
9093
cd python
9194
pip install -e .[docs]
95+
96+
- name: Fetch gh-pages branch
97+
run: git fetch origin gh-pages --depth=1
9298

9399
- name: Configure Git
94100
run: |

.github/workflows/python_release.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
- name: Checkout code
9999
uses: actions/checkout@v4
100100
with:
101-
fetch-depth: 0 # Fetch full history for mike
101+
fetch-depth: 1
102102

103103
- name: Set up Python
104104
uses: actions/setup-python@v4
@@ -147,6 +147,9 @@ jobs:
147147
echo "hidden=$HIDDEN" >> $GITHUB_OUTPUT
148148
echo "Final - Version: $VERSION, Alias: $ALIAS, Hidden: $HIDDEN"
149149
150+
- name: Fetch gh-pages branch
151+
run: git fetch origin gh-pages --depth=1
152+
150153
- name: Configure Git
151154
run: |
152155
git config --global user.name "github-actions[bot]"

0 commit comments

Comments
 (0)