From cf5bc60d3e1769814baab976391966e4d1a43115 Mon Sep 17 00:00:00 2001 From: Vitaly Mikhailov Date: Sun, 16 Oct 2022 16:53:29 +0300 Subject: [PATCH] Update release-steam.yml --- .github/workflows/release-steam.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-steam.yml b/.github/workflows/release-steam.yml index 820d2fb..e6859d5 100644 --- a/.github/workflows/release-steam.yml +++ b/.github/workflows/release-steam.yml @@ -48,7 +48,6 @@ jobs: shell: pwsh - name: Set Description - if: ${{ inputs.mod_description == '' }} id: set_description run: | if ${{ inputs.mod_description == '' }} @@ -59,7 +58,11 @@ jobs: desc="${desc//$'\r'/'%0D'}" echo "::set-output name=mod_description::$desc" else - echo "::set-output name=mod_description::${{ inputs.mod_description }}" + desc="${{ inputs.mod_description }}" + desc="${desc//'%'/'%25'}" + desc="${desc//$'\n'/'%0A'}" + desc="${desc//$'\r'/'%0D'}" + echo "::set-output name=mod_description::$desc" fi - run: | @@ -132,7 +135,7 @@ jobs: "appid" "261550" "publishedfileid" "${{ inputs.workshop_id }}" "contentfolder" "$GITHUB_WORKSPACE/artifact/Modules/${{ inputs.mod_id }}" - "changenote" "${{ inputs.mod_description }}" + "changenote" "${{ steps.set_description.outputs.mod_description }}" } EOT