mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-29 09:05:42 +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
|
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}}.
|
||||||
|
|
Loading…
Reference in a new issue