diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c508d8ce..dec83acf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,7 +69,10 @@ jobs: flatpak install --user -y org.kde.Platform//5.15 flathub org.kde.Sdk//5.15 - name: Set version for the Flatpak run: | - sed -i "s||\n |" desktop/moe.clover.mm3d.metainfo.xml + # if not a tag, add version + if [ $(git describe) != $(git describe --abbrev=0) ]; then + sed -i "s||\n |" desktop/moe.clover.mm3d.metainfo.xml + fi cat desktop/moe.clover.mm3d.metainfo.xml - name: flatpak-builder run: flatpak-builder --repo=flatpak-repo --state-dir=flatpak-state flatpak-build mm3d-flatpak.yaml