File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,20 @@ inputs:
8
8
outputs :
9
9
output :
10
10
description : ' The output of the action'
11
+ value : ${{ steps.set-output.outputs.action_output }}
11
12
branding :
12
13
icon : ' printer'
13
14
color : ' blue'
14
15
runs :
15
16
using : " composite"
16
17
steps :
17
18
- name : Print workflow_dispatch inputs and env vars
19
+ id : set-output
18
20
shell : bash
19
21
env :
20
22
PRINT_ENV_VARS : ${{ inputs.print_env_vars }}
21
23
run : |
22
- {
24
+ output=$(
23
25
echo "Checking for workflow_dispatch inputs:"
24
26
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
25
27
if [ -n "$GITHUB_EVENT_PATH" ] && [ -f "$GITHUB_EVENT_PATH" ]; then
40
42
echo -e "\nPrinting environment variables:"
41
43
env | sort
42
44
fi
43
- } | tee -a $GITHUB_OUTPUT
45
+ )
46
+ echo "$output"
47
+ output="${output//'%'/'%25'}"
48
+ output="${output//$'\n'/'%0A'}"
49
+ output="${output//$'\r'/'%0D'}"
50
+ echo "action_output=$output" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments