fix: snap version being nightlyv0 in stable (#480)

Drew Smirnoff created

Change summary

snapcraft.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

snapcraft.yaml 🔗

@@ -37,7 +37,7 @@ parts:
       - GOBIN: ""
     override-pull: |
       craftctl default
-      version="$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//' || echo 0.1)"
+      version="$(git describe --tags --abbrev=0 --exclude='nightlyv*' 2>/dev/null | sed 's/^v//' || echo 0.1)"
       craftctl set version="$version"
     override-build: |
       go build -o "${CRAFT_PART_INSTALL}/bin/matcha" .