WORKFLOW: tenative fixes for the PR builds [skip ci]

This commit is contained in:
XargonWan 2024-08-22 15:59:20 +09:00
parent d6f1fa3a3f
commit c7edfdc8be

View file

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