Added branch name to cooker git action

This commit is contained in:
XargonWan 2022-04-22 15:21:52 +09:00
parent 87b781ae70
commit 4b96584dc5

View file

@ -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}}.