From b452e3595b64a4a81ee4ddd87de2d7ba16b5cc69 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 17 May 2026 19:23:08 -0400 Subject: [PATCH] fix(update-flathub): do not add changelog --- .../workflows/__call-update-flathub-repo.yml | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/.github/workflows/__call-update-flathub-repo.yml b/.github/workflows/__call-update-flathub-repo.yml index 7a5f8061..292de7e0 100644 --- a/.github/workflows/__call-update-flathub-repo.yml +++ b/.github/workflows/__call-update-flathub-repo.yml @@ -136,40 +136,6 @@ jobs: "https://raw.githubusercontent.com/LizardByte/.github/master/.github/ISSUE_TEMPLATE/config.yml" \ ".github/ISSUE_TEMPLATE/config.yml" - - name: Update metainfo.xml - id: update_metainfo - if: >- - steps.check-label.outputs.hasTopic == 'true' && - steps.check-release.outputs.isLatestRelease == 'true' - env: - CHANGELOG: ${{ github.event.release.body }} - run: | - # Set the metainfo file and placeholder generated by the release asset. - xml_file="flathub/${{ env.FLATHUB_PKG }}/${{ env.FLATHUB_PKG }}.metainfo.xml" - placeholder="" - - # Treat replacement text literally during Bash parameter substitutions. - shopt -u patsub_replacement 2>/dev/null || true - - # Escape XML-sensitive characters from the release body. - changelog="${CHANGELOG:-}" - changelog="${changelog//&/&}" - changelog="${changelog///>}" - - # Read the full metainfo file, preserving newlines. - IFS= read -r -d '' contents < "$xml_file" || true - - # Fail clearly if the generated metainfo file no longer has the expected marker. - if [[ "$contents" != *"$placeholder"* ]]; then - echo "$placeholder not found in $xml_file" - exit 1 - fi - - # Replace the placeholder with the escaped changelog and write the file back. - contents="${contents//$placeholder/$changelog}" - printf '%s' "$contents" > "$xml_file" - - name: Update submodule if: >- steps.check-label.outputs.hasTopic == 'true' &&