Update release-github.yml

master
Vitaly Mikhailov 3 years ago committed by GitHub
parent e21e54e8a4
commit faad31a6ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,11 +49,11 @@ jobs:
if: ${{ inputs.mod_version == '' }} if: ${{ inputs.mod_version == '' }}
id: set_version id: set_version
run: >- run: >-
if ${{ inputs.mod_version == '' }} then if ${{ inputs.mod_version == '' }}
then
vers="$(bannerlord_changelog_parser latestversion -f "$PWD/changelog.txt")"; vers="$(bannerlord_changelog_parser latestversion -f "$PWD/changelog.txt")";
echo "::set-output name=mod_version::$vers"; echo "::set-output name=mod_version::$vers";
fi else
if ${{ inputs.mod_version != '' }} then
echo "::set-output name=mod_version::${{ inputs.mod_version }}"; echo "::set-output name=mod_version::${{ inputs.mod_version }}";
fi fi
@ -61,14 +61,14 @@ jobs:
if: ${{ inputs.mod_description == '' }} if: ${{ inputs.mod_description == '' }}
id: set_description id: set_description
run: >- run: >-
if ${{ inputs.mod_description == '' }} then if ${{ inputs.mod_description == '' }}
then
desc="$(bannerlord_changelog_parser fulldescription -f "$PWD/changelog.txt")"; desc="$(bannerlord_changelog_parser fulldescription -f "$PWD/changelog.txt")";
desc="${desc//'%'/'%25'}"; desc="${desc//'%'/'%25'}";
desc="${desc//$'\n'/'%0A'}"; desc="${desc//$'\n'/'%0A'}";
desc="${desc//$'\r'/'%0D'}"; desc="${desc//$'\r'/'%0D'}";
echo "::set-output name=mod_description::$desc"; echo "::set-output name=mod_description::$desc";
fi else
if ${{ inputs.mod_description != '' }} then
echo "::set-output name=mod_description::${{ inputs.mod_description }}"; echo "::set-output name=mod_description::${{ inputs.mod_description }}";
fi fi

Loading…
Cancel
Save