File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ inputs:
1818 variables_sub_path :
1919 description : Subdirectory with JSON-encoded file with variable
2020 required : false
21- default : .helm/ variables/
21+ default : variables/
2222
2323outputs :
2424 airflow_variable :
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ OUTPUT=$(cat "$VARIABLES_SUB_PATH/${PROJECT_NAME//-/_}.json")
2020
2121# Multiline string handling, per Github Community recommendation:
2222# https://github.community/t/set-output-truncates-multiline-strings/16852/3
23- OUTPUT=" ${OUTPUT// ' %' / ' %25' } "
24- OUTPUT=" ${OUTPUT// $' \n ' / ' %0A' } "
25- OUTPUT=" ${OUTPUT// $' \r ' / ' %0D' } "
23+ # We remove here line endings instead of replacing because we do not need
24+ # pretty JSON in action outputs
25+ OUTPUT=" ${OUTPUT// $' \n ' / ' ' } "
26+ OUTPUT=" ${OUTPUT// $' \r ' / ' ' } "
2627
2728echo " airflow_variable=$OUTPUT " >> " $GITHUB_OUTPUT "
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ OUTPUT=$(cat /tmp/updated.json)
3131
3232# Multiline string handling, per Github Community recommendation:
3333# https://github.community/t/set-output-truncates-multiline-strings/16852/3
34- OUTPUT=" ${OUTPUT// ' %' / ' %25' } "
35- OUTPUT=" ${OUTPUT// $' \n ' / ' %0A' } "
36- OUTPUT=" ${OUTPUT// $' \r ' / ' %0D' } "
34+ # We remove here line endings instead of replacing because we do not need
35+ # pretty JSON in action outputs
36+ OUTPUT=" ${OUTPUT// $' \n ' / ' ' } "
37+ OUTPUT=" ${OUTPUT// $' \r ' / ' ' } "
3738
3839echo " airflow_variable=$OUTPUT " >> " $GITHUB_OUTPUT "
You can’t perform that action at this time.
0 commit comments