Skip to content

Commit 36a5406

Browse files
authored
Update action.yml
1 parent 4650201 commit 36a5406

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

action.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ inputs:
88
outputs:
99
output:
1010
description: 'The output of the action'
11+
value: ${{ steps.set-output.outputs.action_output }}
1112
branding:
1213
icon: 'printer'
1314
color: 'blue'
1415
runs:
1516
using: "composite"
1617
steps:
1718
- name: Print workflow_dispatch inputs and env vars
19+
id: set-output
1820
shell: bash
1921
env:
2022
PRINT_ENV_VARS: ${{ inputs.print_env_vars }}
2123
run: |
22-
{
24+
output=$(
2325
echo "Checking for workflow_dispatch inputs:"
2426
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
2527
if [ -n "$GITHUB_EVENT_PATH" ] && [ -f "$GITHUB_EVENT_PATH" ]; then
@@ -40,4 +42,9 @@ runs:
4042
echo -e "\nPrinting environment variables:"
4143
env | sort
4244
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

0 commit comments

Comments
 (0)