mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-03-06 14:27:48 +00:00
TEST: printing version and description in release notes
This commit is contained in:
parent
12c55df321
commit
3f2ad28f5c
13
.github/workflows/TEST_release_info.yml
vendored
13
.github/workflows/TEST_release_info.yml
vendored
|
@ -39,10 +39,9 @@ jobs:
|
||||||
REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
|
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')"
|
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_VER=$REL_VER" >> $GITHUB_ENV
|
||||||
REL_DES=$(echo "$DES" | sed ':a;N;$!ba;s/\n/\\n/g')
|
#REL_DES=$(echo "$DES" | sed ':a;N;$!ba;s/\n/\\n/g')
|
||||||
echo "REL_DES=$REL_DES" >> $GITHUB_ENV
|
#echo "REL_DES=$REL_DES" >> $GITHUB_ENV
|
||||||
|
echo "$DES" >> "body.md"
|
||||||
|
|
||||||
|
|
||||||
- name: Publish the flatpak in a new release
|
- name: Publish the flatpak in a new release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
@ -51,11 +50,7 @@ jobs:
|
||||||
REL_DES: ${{ env.REL_DES }}
|
REL_DES: ${{ env.REL_DES }}
|
||||||
with:
|
with:
|
||||||
tag: "$REL_VER"
|
tag: "$REL_VER"
|
||||||
body: |
|
bodyFile: "body.md"
|
||||||
# Release Notes
|
|
||||||
|
|
||||||
"$REL_DES"
|
|
||||||
|
|
||||||
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
draft: true
|
draft: true
|
||||||
|
|
Loading…
Reference in a new issue