Skip to content

Commit 7321cab

Browse files
committed
Fix release workflow
1 parent 95cd8c3 commit 7321cab

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/dev-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33+
- name: Patch version template
34+
# Due to change above, git stage area is dirty, so we need to patch the template
35+
run: sed -i 's#dirty_template = ".*"#dirty_template = "{tag}.dev{env:GITHUB_RUN_ID:{ccount}}"#' pyproject.toml
36+
3337
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3438
id: python
3539
uses: actions/setup-python@v6

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31+
- name: Patch version template
32+
# Due to change above, git stage area is dirty, so we need to patch the template
33+
run: sed -i 's#dirty_template = ".*"#dirty_template = "{tag}"#' pyproject.toml
34+
3135
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
3236
id: python
3337
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)