Skip to content

Commit b67b9a9

Browse files
committed
fix actions
1 parent e2179be commit b67b9a9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ jobs:
120120
build-dev-docs:
121121
runs-on: ubuntu-latest
122122
steps:
123+
- name: Checkout repository
124+
uses: actions/checkout@v4
125+
with:
126+
fetch-depth: 0 # Required for hatch-vcs to generate full version
127+
fetch-tags: true
128+
123129
- name: Set up environment variables
124130
uses: ./.github/actions/setup-env
125131

@@ -176,6 +182,12 @@ jobs:
176182
runs-on: ubuntu-latest
177183
needs: [ build-dev-docs, publish-to-azure-pypi ]
178184
steps:
185+
- name: Checkout repository
186+
uses: actions/checkout@v4
187+
with:
188+
fetch-depth: 0 # Required for hatch-vcs to generate full version
189+
fetch-tags: true
190+
179191
- name: Set up environment variables
180192
uses: ./.github/actions/setup-env
181193

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
build-release-docs:
4949
runs-on: ubuntu-latest
5050
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v4
53+
with:
54+
fetch-depth: 0 # Required for hatch-vcs to generate full version
55+
fetch-tags: true
56+
5157
- name: Set up Python Env
5258
uses: ./.github/actions/setup-python-env
5359

@@ -63,6 +69,12 @@ jobs:
6369
runs-on: ubuntu-latest
6470
needs: [ build-release-docs, release ]
6571
steps:
72+
- name: Checkout repository
73+
uses: actions/checkout@v4
74+
with:
75+
fetch-depth: 0 # Required for hatch-vcs to generate full version
76+
fetch-tags: true
77+
6678
- name: Set up Python Env
6779
uses: ./.github/actions/setup-python-env
6880

0 commit comments

Comments
 (0)