mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
TEST: printing version and description in release notes
This commit is contained in:
parent
23625d87ba
commit
12c55df321
7
.github/workflows/TEST_release_info.yml
vendored
7
.github/workflows/TEST_release_info.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue