From a8314ae3b6da10b7ed3f216f1b346df66ef5da94 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 20 Dec 2021 02:55:18 -0500 Subject: [PATCH] Fix Flatpak CI failing on tagged commits --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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