diff options
| author | LeaveMyYard <zhukovpavel2001@gmail.com> | 2023-09-05 13:16:46 +0300 |
|---|---|---|
| committer | LeaveMyYard <zhukovpavel2001@gmail.com> | 2023-09-05 13:16:46 +0300 |
| commit | 6c64218e0a0d2674eb5e4b23067f80e779cb1e09 (patch) | |
| tree | 36a8b8d5f47bf8aa968aae653dd25092e3ca1677 | |
| parent | 88a8c3d2a7e7f358280a641b07acb43ec825ef69 (diff) | |
Fix auto updating code version
| -rw-r--r-- | .github/workflows/update-code-version.yml | 3 |
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 |
