mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 07:25:38 +00:00
Added branch name to cooker git action
This commit is contained in:
parent
87b781ae70
commit
4b96584dc5
8
.github/workflows/cooker.yml
vendored
8
.github/workflows/cooker.yml
vendored
|
@ -37,7 +37,6 @@ jobs:
|
|||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
sudo flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 io.qt.qtwebengine.BaseApp/x86_64/5.15-21.08 org.freedesktop.Sdk.Extension.llvm13
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Building flatpak
|
||||
run: |
|
||||
sudo flatpak-builder --user --install --force-clean --repo=local retrodeck-flatpak com.xargon.retrodeck.yml
|
||||
|
@ -47,10 +46,15 @@ jobs:
|
|||
id: date
|
||||
run: echo "::set-output name=date::$(date +'%Y%m%d_%H%M')"
|
||||
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: extract_branch
|
||||
|
||||
- name: Publish the flatpak in a new cooker release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: "${{ steps.date.outputs.date }}"
|
||||
tag: "${{ steps.extract_branch.outputs.branch }}" + "-" + "${{ steps.date.outputs.date }}"
|
||||
body: |
|
||||
# Release Notes (Cooker)
|
||||
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
|
||||
|
|
Loading…
Reference in a new issue