From 76efb094d6e2c1b8ab36af9102b4eb7e9616e920 Mon Sep 17 00:00:00 2001 From: Vitaly Mikhailov Date: Wed, 21 Sep 2022 02:10:40 +0300 Subject: [PATCH] Update release-github.yml --- .github/workflows/release-github.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-github.yml b/.github/workflows/release-github.yml index ef39339..66bd683 100644 --- a/.github/workflows/release-github.yml +++ b/.github/workflows/release-github.yml @@ -49,30 +49,28 @@ jobs: if: ${{ inputs.mod_version == '' }} id: set_version run: >- - if ($${{ inputs.mod_version == '' }}) { + if $${{ inputs.mod_version == '' }} then vers="$(bannerlord_changelog_parser latestversion -f "$PWD/changelog.txt")" echo "::set-output name=mod_version::$vers" - } - if (!$${{ inputs.mod_version == '' }}) { + fi + if $${{ inputs.mod_version != '' }} then echo "::set-output name=mod_version::${{ inputs.mod_version }}" - } - shell: pwsh + fi - name: Set Description if: ${{ inputs.mod_description == '' }} id: set_description run: >- - if ($${{ inputs.mod_description == '' }}) { + if $${{ inputs.mod_description == '' }} then desc="$(bannerlord_changelog_parser fulldescription -f "$PWD/changelog.txt")" desc="${desc//'%'/'%25'}" desc="${desc//$'\n'/'%0A'}" desc="${desc//$'\r'/'%0D'}" echo "::set-output name=mod_description::$desc" - } - if (!$${{ inputs.mod_description == '' }}) { + fi + if $${{ inputs.mod_description != '' }} then echo "::set-output name=mod_description::${{ inputs.mod_description }}" - } - shell: pwsh + fi - name: Create Release uses: actions/create-release@v1