Skip to content

Commit

Permalink
Fix Flatpak CI failing on tagged commits
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Dec 20, 2021
1 parent f53c798 commit a8314ae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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|<releases>|<releases>\n <release version=\"$(git describe|sed 's/^v\([0-9]\)/\1/')\" date=\"$(git show -s --pretty=format:%ad --date=short)\" />|" desktop/moe.clover.mm3d.metainfo.xml
# if not a tag, add version
if [ $(git describe) != $(git describe --abbrev=0) ]; then
sed -i "s|<releases>|<releases>\n <release version=\"$(git describe|sed 's/^v\([0-9]\)/\1/')\" date=\"$(git show -s --pretty=format:%ad --date=short)\" />|" 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
Expand Down

0 comments on commit a8314ae

Please sign in to comment.