TEST: printing version and description in release notes

This commit is contained in:
XargonWan 2023-03-17 16:52:44 +00:00
parent 23625d87ba
commit 12c55df321

View file

@ -37,9 +37,12 @@ jobs:
run: |
appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml"
REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
REL_DES="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')"
DES="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')"
echo "REL_VER=$REL_VER" >> $GITHUB_ENV
echo "REL_DES=\"${REL_DES//\"/\\\"}\"" >> $GITHUB_ENV
REL_DES=$(echo "$DES" | sed ':a;N;$!ba;s/\n/\\n/g')
echo "REL_DES=$REL_DES" >> $GITHUB_ENV
- name: Publish the flatpak in a new release
uses: ncipollo/release-action@v1