mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-02-16 19:35:39 +00:00
TEST: printing version and description in release notes
This commit is contained in:
parent
78bab6db86
commit
44976fb53e
16
.github/workflows/TEST_release_info.yml
vendored
16
.github/workflows/TEST_release_info.yml
vendored
|
@ -36,22 +36,26 @@ jobs:
|
|||
id: version
|
||||
run: |
|
||||
appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml"
|
||||
export REL_VER=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
|
||||
export REL_DESC="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')"
|
||||
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')"
|
||||
echo "REL_VER=$REL_VER" >> $GITHUB_ENV
|
||||
echo "REL_DES=$REL_DES" >> $GITHUB_ENV
|
||||
|
||||
- name: Publish the flatpak in a new release
|
||||
uses: ncipollo/release-action@v1
|
||||
env:
|
||||
REL_VER: ${{ env.REL_VER }}
|
||||
REL_DES: ${{ env.REL_DES }}
|
||||
with:
|
||||
tag: "${{ steps.version.REL_VER }}"
|
||||
tag: "$REL_VER"
|
||||
body: |
|
||||
# Release Notes
|
||||
|
||||
"${{ steps.version.REL_DESC }}"
|
||||
"$REL_DES"
|
||||
|
||||
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||
allowUpdates: true
|
||||
prerelease: true
|
||||
draft: true
|
||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
repo: RetroDECK
|
||||
continue-on-error: true
|
||||
#continue-on-error: true
|
Loading…
Reference in a new issue