mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2025-04-10 19:15:12 +00:00
WORKFLOW: tentative release body file fix [skip ci]
This commit is contained in:
parent
3b4b9fa15f
commit
bbe9a9c804
38
.github/workflows/build_retrodeck.yml
vendored
38
.github/workflows/build_retrodeck.yml
vendored
|
@ -42,7 +42,7 @@ jobs:
|
||||||
runs-on: retrodeck
|
runs-on: retrodeck
|
||||||
outputs:
|
outputs:
|
||||||
TAG: ${{ steps.version-tag.outputs.TAG }}
|
TAG: ${{ steps.version-tag.outputs.TAG }}
|
||||||
RELEASE_BODY: ${{ steps.version-tag.outputs.RELEASE_BODY }}
|
RELEASE_BODY: "${{ needs.Build_RetroDECK.outputs.RELEASE_BODY_FILE }} || No release body found"
|
||||||
MAKE_LATEST: ${{ steps.version-tag.outputs.MAKE_LATEST }}
|
MAKE_LATEST: ${{ steps.version-tag.outputs.MAKE_LATEST }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -197,23 +197,25 @@ jobs:
|
||||||
id: generate-body
|
id: generate-body
|
||||||
run: |
|
run: |
|
||||||
# Initialize the release body text
|
# Initialize the release body text
|
||||||
RELEASE_BODY="# Release Notes\n"
|
RELEASE_BODY_FILE="release_body.md"
|
||||||
RELEASE_BODY+="This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{ github.sha }}.\n"
|
echo "# Release Notes" > $RELEASE_BODY_FILE
|
||||||
RELEASE_BODY+="On branch [${{ env.BRANCH_NAME }}](https://repo.retrodeck.net/RetroDECK/RetroDECK/src/branch/${{ env.BRANCH_NAME }}).\n"
|
echo "This is a cooker snapshot based on the commit: ${{ github.event.repository.full_name }}@${{ github.sha }}." >> $RELEASE_BODY_FILE
|
||||||
RELEASE_BODY+="## Commits since last release\n"
|
echo "On branch [${{ env.BRANCH_NAME }}](https://repo.retrodeck.net/RetroDECK/RetroDECK/src/branch/${{ env.BRANCH_NAME }})." >> $RELEASE_BODY_FILE
|
||||||
|
echo "## Commits since last release" >> $RELEASE_BODY_FILE
|
||||||
|
echo "" >> $RELEASE_BODY_FILE
|
||||||
|
|
||||||
# Append commits from the file to the release body
|
# Append commits from the file to the release body
|
||||||
if [ -f "${{ env.COMMITS_FILE }}" ]; then
|
if [ -f "${{ env.COMMITS_FILE }}" ]; then
|
||||||
COMMITS=$(cat "${{ env.COMMITS_FILE }}")
|
echo "${{ env.COMMITS_FILE }}" >> $RELEASE_BODY_FILE
|
||||||
RELEASE_BODY+="$COMMITS\n\n"
|
echo "" >> $RELEASE_BODY_FILE
|
||||||
else
|
else
|
||||||
echo "[ERROR] Commits file not found: ${{ env.COMMITS_FILE }}"
|
echo "[ERROR] Commits file not found: ${{ env.COMMITS_FILE }}"
|
||||||
RELEASE_BODY+="[ERROR] Commits file not found"
|
echo "[ERROR] Commits file not found" >> $RELEASE_BODY_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Debug: Print the release body so far
|
# Debug: Print the release body so far
|
||||||
echo "[DEBUG] RELEASE_BODY:"
|
echo "[DEBUG] Current release body contents:"
|
||||||
echo "$RELEASE_BODY"
|
cat $RELEASE_BODY_FILE
|
||||||
|
|
||||||
# Process raw description (if needed)
|
# Process raw description (if needed)
|
||||||
#raw_description="${{ steps.extract-description.outputs.result }}"
|
#raw_description="${{ steps.extract-description.outputs.result }}"
|
||||||
|
@ -232,10 +234,12 @@ jobs:
|
||||||
echo "Markdown Description:"
|
echo "Markdown Description:"
|
||||||
echo "$markdown_description"
|
echo "$markdown_description"
|
||||||
|
|
||||||
# Append markdown content to the release body
|
# Append markdown content to the release body file
|
||||||
RELEASE_BODY+="$markdown_description"
|
echo "$markdown_description" >> $RELEASE_BODY_FILE
|
||||||
printf "RELEASE_BODY=%s\n" "$RELEASE_BODY" >> $GITHUB_ENV
|
|
||||||
printf "RELEASE_BODY=%s\n" "$RELEASE_BODY" >> $GITHUB_OUTPUT
|
# Output the file path to the environment and output variables
|
||||||
|
echo "RELEASE_BODY_FILE=$RELEASE_BODY_FILE" >> $GITHUB_ENV
|
||||||
|
echo "RELEASE_BODY_FILE=$RELEASE_BODY_FILE" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
echo "[DEBUG] CHECKPOINT 8"
|
echo "[DEBUG] CHECKPOINT 8"
|
||||||
|
|
||||||
|
@ -290,7 +294,7 @@ jobs:
|
||||||
needs: Build_RetroDECK
|
needs: Build_RetroDECK
|
||||||
env:
|
env:
|
||||||
TAG: ${{ needs.Build_RetroDECK.outputs.TAG }}
|
TAG: ${{ needs.Build_RetroDECK.outputs.TAG }}
|
||||||
RELEASE_BODY: ${{ needs.Build_RetroDECK.outputs.RELEASE_BODY }}
|
RELEASE_BODY: "${{ needs.Build_RetroDECK.outputs.RELEASE_BODY_FILE }} || No release body found"
|
||||||
MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }}
|
MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -365,7 +369,7 @@ jobs:
|
||||||
# needs: Build_RetroDECK
|
# needs: Build_RetroDECK
|
||||||
# env:
|
# env:
|
||||||
# TAG: ${{ needs.Build_RetroDECK.outputs.TAG }}
|
# TAG: ${{ needs.Build_RetroDECK.outputs.TAG }}
|
||||||
# RELEASE_BODY: ${{ needs.Build_RetroDECK.outputs.RELEASE_BODY }}
|
# RELEASE_BODY: "${{ needs.Build_RetroDECK.outputs.RELEASE_BODY_FILE }} || No release body found"
|
||||||
# MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }}
|
# MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }}
|
||||||
# steps:
|
# steps:
|
||||||
#
|
#
|
||||||
|
@ -376,7 +380,7 @@ jobs:
|
||||||
# if: github.ref == 'refs/heads/main'
|
# if: github.ref == 'refs/heads/main'
|
||||||
# uses: RetroDECK/components-template/.github/workflows/fogejo_publish_release.yml@main
|
# uses: RetroDECK/components-template/.github/workflows/fogejo_publish_release.yml@main
|
||||||
# with:
|
# with:
|
||||||
# release_body: ${{ env.RELEASE_BODY }}
|
# release_body: "${{ needs.Build_RetroDECK.outputs.RELEASE_BODY_FILE }} || No release body found"
|
||||||
# artifacts: "retrodeck-artifacts/*.flatpak,retrodeck-artifacts/*.flatpak.sha,retrodeck-artifacts/*Artifact.tar.gz"
|
# artifacts: "retrodeck-artifacts/*.flatpak,retrodeck-artifacts/*.flatpak.sha,retrodeck-artifacts/*Artifact.tar.gz"
|
||||||
# tag: ${{ env.TAG }}
|
# tag: ${{ env.TAG }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue