WORKFLOW: better branch name x2

This commit is contained in:
XargonWan 2024-01-23 10:19:14 +01:00
parent 4abb31c5dc
commit facd7680ab

View file

@ -57,19 +57,17 @@ jobs:
- name: Get branch name
id: branch_name
run: echo "BRANCH_NAME=$(echo $GITHUB_REF | sed 's|refs/heads/||')" >> $GITHUB_ENV
# TODO: I need to enhance this
#run: echo "BRANCH_NAME=main" >> $GITHUB_ENV
- name: Get date
id: date
run: echo "DATE=$(date +'%d%m%y')" >> $GITHUB_ENV
run: echo "DATE=$(date +'%d%m%y.%H%M%S')" >> $GITHUB_ENV
- name: Publish the artifacts in a release
uses: ncipollo/release-action@v1
with:
tag: "${{env.BRANCH_NAME}}-${{env.DATE}}"
body: |
# Release Notes (Cooker)
# Release Notes
These are the artifact of RetroDECK MAME, commit: ${{ github.event.repository.full_name }}@${{github.sha}}.
On branch [${{env.BRANCH_NAME}}](https://github.com/XargonWan/RetroDECK-MAME/tree/${{env.BRANCH_NAME}}).