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 echo "MANIFEST_VERSION=$MANIFEST_VERSION" >> $GITHUB_ENV
# Determine tag based on branch type # Determine tag based on branch type
if [[ "$BRANCH_NAME" == refs/* ]]; then if [[ "$BRANCH_NAME" == refs/pull/* ]]; then
pr_number=$(echo "${{ env.BRANCH_NAME }}" | awk -F'/' '{print $3}') 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 '/' '-') 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 }}" TAG="PR-$pr_number-$source_branch-${{ env.buildid }}"
else else
@ -154,7 +154,6 @@ jobs:
uses: ncipollo/release-action@v1 uses: ncipollo/release-action@v1
with: with:
tag: "${{env.TAG}}" tag: "${{env.TAG}}"
commit: ${{ github.sha }}
body: | body: |
# Release Notes (Cooker) # Release Notes (Cooker)
This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}. This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{github.sha}}.