Skip to content

Commit 3093530

Browse files
committed
2022.09.08:
* fixed: action.yml: multiline input in `${{ input.env }}`
1 parent 80a3331 commit 3093530

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,13 @@ runs:
116116
- name: declare variables from lists
117117
shell: bash
118118
run: |
119+
# suppress not zero exit code
120+
{ IFS=$' \t' read -r -d '' INPUT_ENV || (( 1 )); } <<::EOF::
121+
${{ inputs.env }}
122+
::EOF::
123+
INPUT_ENV="${INPUT_ENV//[$'\n\r']/}" # remove all line returns
119124
$GH_WORKFLOW_ROOT/bash/github/set-env-from-args.sh \
120-
${{ inputs.env }} \
125+
${INPUT_ENV} \
121126
"GHWF_GITHUB_ACTIONS_RUN_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
122127
123128
- name: variables validation

changelog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022.09.08:
2+
* fixed: action.yml: multiline input in `${{ input.env }}`
3+
14
2022.09.08:
25
* new: action.yml: print changelog file path into pipeline log
36

userlog.md

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
33
> :warning: to find all changes use [changelog.txt](https://github.com/andry81-devops/gh-action--accum-gh-stats/blob/master/changelog.txt) file in a directory
44
5+
## 2022.09.08:
6+
* fixed: action.yml: multiline input in `${{ input.env }}`
7+
58
## 2022.08.26:
69
* 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
710

0 commit comments

Comments
 (0)