From 3cf6e3a40e331ab887816b2f552b8f5d6dba5cad Mon Sep 17 00:00:00 2001 From: Roy Moore Date: Sat, 20 Apr 2024 11:23:44 +0300 Subject: [PATCH 1/2] Validate version match --- .github/workflows/publish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6f81933..9f4f60a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,9 +42,14 @@ jobs: - name: Check Version id: get_version run: | - version=$(git describe --tags --abbrev=0) - echo "Got Version: $version" - echo "version=$version" >> $GITHUB_OUTPUT + git_version=$(git describe --tags --abbrev=0) + file_version=$(python -c "from xls_updater import __version__; print(__version__)") + if [ "$git_version" != "$file_version" ]; then + echo "Version mismatch: git=$git_version, file=$file_version" + exit 1 + fi + echo "Got Version: $git_version" + echo "git_version=$git_version" >> $GITHUB_OUTPUT - name: Download Binary Artifact uses: actions/download-artifact@v4 From 7536ed4a41f59b9d3d4257b821c5cbc9af6ea920 Mon Sep 17 00:00:00 2001 From: Roy Moore Date: Sat, 20 Apr 2024 11:24:06 +0300 Subject: [PATCH 2/2] New version: 0.2.3 --- xls_updater/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xls_updater/__about__.py b/xls_updater/__about__.py index bf8d21c..905d512 100644 --- a/xls_updater/__about__.py +++ b/xls_updater/__about__.py @@ -1,3 +1,3 @@ """Version of the package - This file is generated by semvergit""" -__version__ = "0.2.1" +__version__ = "0.2.3"