summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLeaveMyYard <zhukovpavel2001@gmail.com>2023-09-05 13:16:46 +0300
committerLeaveMyYard <zhukovpavel2001@gmail.com>2023-09-05 13:16:46 +0300
commit6c64218e0a0d2674eb5e4b23067f80e779cb1e09 (patch)
tree36a8b8d5f47bf8aa968aae653dd25092e3ca1677 /.github
parent88a8c3d2a7e7f358280a641b07acb43ec825ef69 (diff)
Fix auto updating code version
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/update-code-version.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/update-code-version.yml b/.github/workflows/update-code-version.yml
index 019d0a1..1e03409 100644
--- a/.github/workflows/update-code-version.yml
+++ b/.github/workflows/update-code-version.yml
@@ -18,6 +18,9 @@ jobs:
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
+ - name: Select main branch
+ run: git checkout main
+
- name: Update version in pyproject.toml
run: |
sed -i "s/version = \".*\"/version = \"$VERSION\"/" pyproject.toml