From 6c64218e0a0d2674eb5e4b23067f80e779cb1e09 Mon Sep 17 00:00:00 2001 From: LeaveMyYard Date: Tue, 5 Sep 2023 13:16:46 +0300 Subject: [PATCH] Fix auto updating code version --- .github/workflows/update-code-version.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/update-code-version.yml b/.github/workflows/update-code-version.yml index 019d0a17..1e034097 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