Attempt to use the latest snapcraft build

This commit is contained in:
Mike Farah
2024-02-02 14:49:41 +11:00
parent 6183350182
commit 2473068a1a
2 changed files with 25 additions and 7 deletions
+10 -1
View File
@@ -27,7 +27,7 @@ else
echo "version.go updated"
fi
version=$version ./yq -i '.version=strenv(version)' snap/snapcraft.yaml
version=$version ./yq -i '.version=strenv(version) | .parts.yq.source-tag=strenv(version)' snap/snapcraft.yaml
actualSnapVersion=$(./yq '.version' snap/snapcraft.yaml)
@@ -38,6 +38,15 @@ else
echo "snapcraft updated"
fi
actualSnapVersion=$(./yq '.parts.yq.source-tag' snap/snapcraft.yaml)
if [ "$actualSnapVersion" != "$version" ]; then
echo "Failed to update snapcraft"
exit 1
else
echo "snapcraft updated"
fi
git add cmd/version.go snap/snapcraft.yaml
git commit -m 'Bumping version'
git tag $version