mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
WORKFLOW: tenative fixes for the PR builds [skip ci]
This commit is contained in:
parent
d6f1fa3a3f
commit
c7edfdc8be
5
.github/workflows/cooker-selfhosted.yml
vendored
5
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -88,8 +88,8 @@ jobs:
|
|||
echo "MANIFEST_VERSION=$MANIFEST_VERSION" >> $GITHUB_ENV
|
||||
|
||||
# Determine tag based on branch type
|
||||
if [[ "$BRANCH_NAME" == refs/* ]]; then
|
||||
pr_number=$(echo "${{ env.BRANCH_NAME }}" | awk -F'/' '{print $3}')
|
||||
if [[ "$BRANCH_NAME" == refs/pull/* ]]; then
|
||||
pr_number=$(echo "$GITHUB_REF" | awk -F'/' '{print $3}')
|
||||
source_branch=$(curl -s "https://api.github.com/repos/RetroDECK/RetroDECK/pulls/$pr_number" | jq -r '.head.ref' | tr '/' '-')
|
||||
TAG="PR-$pr_number-$source_branch-${{ env.buildid }}"
|
||||
else
|
||||
|
@ -154,7 +154,6 @@ jobs:
|
|||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: "${{env.TAG}}"
|
||||
commit: ${{ github.sha }}
|
||||
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