diff --git a/action.yml b/action.yml index 9215eb8..869e682 100644 --- a/action.yml +++ b/action.yml @@ -105,8 +105,13 @@ runs: - name: declare variables from lists shell: bash run: | + # suppress not zero exit code + { IFS=$' \t' read -r -d '' INPUT_ENV || (( 1 )); } <<::EOF:: + ${{ inputs.env }} + ::EOF:: + INPUT_ENV="${INPUT_ENV//[$'\n\r']/}" # remove all line returns $GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \ - ${{ inputs.env }} \ + ${INPUT_ENV} \ "GHWF_GITHUB_ACTIONS_RUN_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - name: variables validation diff --git a/changelog.txt b/changelog.txt index d5c522b..21f2457 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +2022.09.08: +* fixed: action.yml: multiline input in `${{ input.env }}` + 2022.09.08: * new: action.yml: print changelog file path into pipeline log * new: action.yml: print topic query URL into pipeline log diff --git a/userlog.md b/userlog.md index d2deb9d..1e920ea 100644 --- a/userlog.md +++ b/userlog.md @@ -2,6 +2,9 @@ > :warning: to find all changes use [changelog.txt](https://github.com/andry81-devops/gh-action--accum-inpage-downloads/blob/master/changelog.txt) file in a directory +## 2022.09.08: +* fixed: action.yml: multiline input in `${{ input.env }}` + ## 2022.08.26: * new: action.yml: added `ENABLE_GITHUB_ACTIONS_RUN_URL_PRINT_TO_CHANGELOG` and `GHWF_GITHUB_ACTIONS_RUN_URL` variables to be able to print GitHub Actions run URL into the changelog file