Set new cooker name

This commit is contained in:
XargonWan 2022-10-08 15:12:54 +02:00
parent 3926e73160
commit 4f9d64d6f5
2 changed files with 3 additions and 9 deletions

View file

@ -32,7 +32,8 @@ jobs:
- name: Generate build ID
id: generating_buildid
run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")"
#run: echo "##[set-output name=build-id;]$(echo "${{ steps.extract_branch.outputs.branch }}-${{ steps.date.outputs.date }}")"
run: echo "##[set-output name=build-id;]$(echo "${{ git rev-parse --short HEAD }}")"
- uses: actions/checkout@v3
@ -65,14 +66,9 @@ jobs:
run: |
flatpak build-bundle ${GITHUB_WORKSPACE}/local RetroDECK.flatpak net.retrodeck.retrodeck
- name: Read version from version file
id: version
run: echo "##[set-output name=version;]$(cat $(find . -name version))"
- name: Publish the flatpak in a new cooker release
uses: ncipollo/release-action@v1
with:
#tag: "${{ steps.version.outputs.version }}"
tag: "${{ steps.generating_buildid.outputs.build-id }}"
body: |
# Release Notes (Cooker)

View file

@ -79,9 +79,7 @@ modules:
VERSION="0.5.0b-cooker"
if [[ $VERSION == *"cooker"* ]];
then
# Disabled until I figure it out
# VERSION=$(git describe --tags | tr - .)
VERSION="cooker-"$(date +%d%m%y.%H%M)
VERSION="cooker-"$(git rev-parse --short HEAD)
fi
echo $VERSION >> ${FLATPAK_DEST}/retrodeck/version
cat ${FLATPAK_DEST}/retrodeck/version