From 9a0f34d08c361718ebc2a5dde2cf02ae0e33883c Mon Sep 17 00:00:00 2001 From: Michael Otto Date: Mon, 2 Mar 2026 11:02:26 +0100 Subject: [PATCH] Build XML block angepasst --- .gitea/workflows/release.yml | 38 ++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2d6d767..bf381c6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -143,24 +143,28 @@ jobs: echo "download_url=${DOWNLOAD_URL}" >> $GITHUB_OUTPUT - name: Build XML block - id: xmlblock - run: | - BLOCK=" \n" - BLOCK+=" ${{ steps.cfg.outputs.description }}\n" - BLOCK+=" ${{ steps.cfg.outputs.qgis_min }}\n" - BLOCK+=" ${{ steps.cfg.outputs.qgis_max }}\n" - BLOCK+=" ${{ steps.cfg.outputs.author }}\n" - BLOCK+=" ${{ steps.cfg.outputs.email }}\n" - BLOCK+=" ${{ steps.cfg.outputs.homepage }}\n" - BLOCK+=" ${{ steps.cfg.outputs.tracker }}\n" - BLOCK+=" ${{ steps.cfg.outputs.repository }}\n" - BLOCK+=" ${{ steps.upload_asset.outputs.download_url }}\n" - BLOCK+=" ${{ steps.cfg.outputs.experimental }}\n" - BLOCK+=" ${{ steps.cfg.outputs.deprecated }}\n" - BLOCK+=" " + id: xmlblock + run: | + NAME="${{ steps.cfg.outputs.name }}" + VERSION="${{ steps.info.outputs.version }}" + + BLOCK=$(printf ' \n %s\n %s\n %s\n %s\n %s\n %s\n %s\n %s\n %s\n %s\n %s\n ' \ + "$NAME" \ + "$VERSION" \ + "${{ steps.cfg.outputs.description }}" \ + "${{ steps.cfg.outputs.qgis_min }}" \ + "${{ steps.cfg.outputs.qgis_max }}" \ + "${{ steps.cfg.outputs.author }}" \ + "${{ steps.cfg.outputs.email }}" \ + "${{ steps.cfg.outputs.homepage }}" \ + "${{ steps.cfg.outputs.tracker }}" \ + "${{ steps.cfg.outputs.repository }}" \ + "${{ steps.download_url.outputs.download_url }}" \ + "${{ steps.cfg.outputs.experimental }}" \ + "${{ steps.cfg.outputs.deprecated }}") - BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g') - echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT + BLOCK_ESCAPED=$(printf '%s' "$BLOCK" | sed 's/"/\\"/g') + echo "block=${BLOCK_ESCAPED}" >> $GITHUB_OUTPUT - name: Dispatch to Repository run: |