mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +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
|
id: version
|
||||||
run: |
|
run: |
|
||||||
appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml"
|
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)
|
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_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
|
- name: Publish the flatpak in a new release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
|
env:
|
||||||
|
REL_VER: ${{ env.REL_VER }}
|
||||||
|
REL_DES: ${{ env.REL_DES }}
|
||||||
with:
|
with:
|
||||||
tag: "${{ steps.version.REL_VER }}"
|
tag: "$REL_VER"
|
||||||
body: |
|
body: |
|
||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
"${{ steps.version.REL_DESC }}"
|
"$REL_DES"
|
||||||
|
|
||||||
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
prerelease: true
|
|
||||||
draft: true
|
draft: true
|
||||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||||
repo: RetroDECK
|
repo: RetroDECK
|
||||||
continue-on-error: true
|
#continue-on-error: true
|
Loading…
Reference in a new issue