mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
TEST: printing version and description in release notes
This commit is contained in:
parent
31358a00b3
commit
35474be4fd
57
.github/workflows/TEST_release_info.yml
vendored
Normal file
57
.github/workflows/TEST_release_info.yml
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
name: TEST_release_info
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .github/workflows/TEST_release_info.yml
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
Building_RetroDECK:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Generate build ID
|
||||
id: generating_buildid
|
||||
run: echo "##[set-output name=build-id;]$(echo "$( git rev-parse --short HEAD )")"
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Initialize enviornment
|
||||
run: |
|
||||
git pull
|
||||
git submodule init
|
||||
git submodule update
|
||||
sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet
|
||||
|
||||
- name: Getting version info
|
||||
id: version
|
||||
run: |
|
||||
appdata="https://raw.githubusercontent.com/XargonWan/RetroDECK/main/net.retrodeck.retrodeck.appdata.xml"
|
||||
version=$(curl -s $appdata | xmlstarlet sel -t -v "//release/@version" | head -1)
|
||||
description="$(curl -s $appdata | xmlstarlet sel -t -m "//release[1]" -v "description" -n | sed '1,2d;$d;s/^ */- /;/^- $/d')"
|
||||
|
||||
- name: Publish the flatpak in a new release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: "${{ steps.version.version }}"
|
||||
body: |
|
||||
# Release Notes
|
||||
|
||||
"${{ steps.version.description }}"
|
||||
|
||||
#artifacts: "RetroDECK.flatpak,RetroDECK-Artifact.tar.gz"
|
||||
allowUpdates: true
|
||||
prerelease: true
|
||||
draft: true
|
||||
token: ${{ secrets.TRIGGER_BUILD_TOKEN }}
|
||||
repo: RetroDECK
|
||||
continue-on-error: true
|
|
@ -1 +1 @@
|
|||
Subproject commit 0b1cfb79e591e10488a3262d6b38db843c39a409
|
||||
Subproject commit 717b78093797270877ec416e58082f1c71d435d8
|
Loading…
Reference in a new issue