From 8c568ec123931c966fb42acad99fe23a3fe822d2 Mon Sep 17 00:00:00 2001 From: Alexey Chernyshov <65975574+artifixer@users.noreply.github.com> Date: Tue, 15 Nov 2022 18:50:30 +0300 Subject: [PATCH] Update release-nexusmods.yml Made published changelogs prettier --- .github/workflows/release-nexusmods.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-nexusmods.yml b/.github/workflows/release-nexusmods.yml index cea8f45..dc7f233 100644 --- a/.github/workflows/release-nexusmods.yml +++ b/.github/workflows/release-nexusmods.yml @@ -81,12 +81,18 @@ jobs: desc="${desc//$'\n'/'%0A'}" desc="${desc//$'\r'/'%0D'}" echo "::set-output name=mod_description::$desc" + c_desc="${desc#'For'*'%0A* '}" + c_desc="${c_desc//'%0A* '/'%0A'}" + echo "::set-output name=mod_changelog::$c_desc" else desc="${{ inputs.mod_description }}" desc="${desc//'%'/'%25'}" desc="${desc//$'\n'/'%0A'}" desc="${desc//$'\r'/'%0D'}" echo "::set-output name=mod_description::$desc" + c_desc="${desc#'For'*'%0A* '}" + c_desc="${c_desc//'%0A* '/'%0A'}" + echo "::set-output name=mod_changelog::$c_desc" fi - name: Install NexusUploader @@ -95,7 +101,7 @@ jobs: - run: | unex upload ${{ inputs.nexusmods_mod_id }} "${{ inputs.mod_filename }}.7z" -v "v${{ steps.set_version.outputs.mod_version }}" ; - unex changelog "v${{ steps.set_version.outputs.mod_version }}" "${{ steps.set_description.outputs.mod_description }}" + unex changelog "v${{ steps.set_version.outputs.mod_version }}" "${{ steps.set_description.outputs.mod_changelog }}" env: UNEX_GAME: ${{ inputs.nexusmods_game_id }} UNEX_MODID: ${{ inputs.nexusmods_mod_id }}