TEST: printing version and description in release notes

This commit is contained in:
XargonWan 2023-03-17 16:59:08 +00:00
parent 12c55df321
commit 3f2ad28f5c

View file

@ -39,10 +39,9 @@ jobs:
REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
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
REL_DES=$(echo "$DES" | sed ':a;N;$!ba;s/\n/\\n/g')
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
echo "$DES" >> "body.md"
- name: Publish the flatpak in a new release
uses: ncipollo/release-action@v1
@ -51,11 +50,7 @@ jobs:
REL_DES: ${{ env.REL_DES }}
with:
tag: "$REL_VER"
body: |
# Release Notes
"$REL_DES"
bodyFile: "body.md"
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
allowUpdates: true
draft: true