From 95adc04e42f40030c431406afe62c39de0361718 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 13 Nov 2024 15:55:36 +0900 Subject: [PATCH] BUILD_RELEASE: debugging what is causing the exit from generate-body --- .github/workflows/build_release.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 2db3f36d..8b0f3e0f 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -142,11 +142,11 @@ jobs: # Export the commits list to the GitHub environment echo "COMMITS=$COMMITS" >> $GITHUB_ENV - - name: Extract XML Description - uses: Mudlet/xmlstarlet-action@master - id: extract-description - with: - args: sel -t -v "/component/releases/release[1]/description//text()" ./net.retrodeck.retrodeck.appdata.xml + # - name: Extract XML Description + # uses: Mudlet/xmlstarlet-action@master + # id: extract-description + # with: + # args: sel -t -v "/component/releases/release[1]/description//text()" ./net.retrodeck.retrodeck.appdata.xml # Generate Release Body - name: Generate release body text @@ -159,31 +159,21 @@ jobs: RELEASE_BODY+="## Commits since last release\n" RELEASE_BODY+="$COMMITS\n\n" - raw_description="${{ steps.extract-description.outputs.result }}" - - echo "[DEBUG] CHECKPOINT 3" + #raw_description="${{ steps.extract-description.outputs.result }}" # Convert

tags to markdown headers using sed markdown_description=$(echo "$raw_description" | sed -e 's|

|\n### |g' -e 's|

||g') - echo "[DEBUG] CHECKPOINT 4" - # Convert
  • tags to bullet points and trim spaces markdown_description=$(echo "$markdown_description" | sed -e 's|||g' -e 's|
  • |- |g' -e 's|
  • ||g' | awk '{$1=$1;print}') - echo "[DEBUG] CHECKPOINT 5" - # Remove any remaining XML tags markdown_description=$(echo "$markdown_description" | sed -e 's/<[^>]*>//g') - echo "[DEBUG] CHECKPOINT 6" - # Debug: Print the markdown description echo "Markdown Description:" echo "$markdown_description" - echo "[DEBUG] CHECKPOINT 7" - # Append markdown content to the release body RELEASE_BODY+="$markdown_description" printf "RELEASE_BODY=%s\n" "$RELEASE_BODY" >> $GITHUB_ENV