From d8db4d28ab704e32be28a5906940c2ad483bb2bc Mon Sep 17 00:00:00 2001 From: Rian Stockbower Date: Sat, 7 Feb 2026 15:40:17 -0500 Subject: [PATCH] fix: inject snap package version from git tag Fixes #111 --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e029001..b44b451 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -308,6 +308,13 @@ jobs: ref: ${{ env.TAG }} fetch-depth: 0 + - name: Set snap version from tag + run: | + VERSION="${TAG#v}" + sed -i "s/^version: git$/version: '${VERSION}'/" snap/snapcraft.yaml + echo "Snap version: ${VERSION}" + grep '^version:' snap/snapcraft.yaml + - name: Build snap uses: snapcore/action-build@v1 id: build