Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shayki5 authored Jul 23, 2024
1 parent 4650201 commit 36a5406
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ inputs:
outputs:
output:
description: 'The output of the action'
value: ${{ steps.set-output.outputs.action_output }}
branding:
icon: 'printer'
color: 'blue'
runs:
using: "composite"
steps:
- name: Print workflow_dispatch inputs and env vars
id: set-output
shell: bash
env:
PRINT_ENV_VARS: ${{ inputs.print_env_vars }}
run: |
{
output=$(
echo "Checking for workflow_dispatch inputs:"
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
if [ -n "$GITHUB_EVENT_PATH" ] && [ -f "$GITHUB_EVENT_PATH" ]; then
Expand All @@ -40,4 +42,9 @@ runs:
echo -e "\nPrinting environment variables:"
env | sort
fi
} | tee -a $GITHUB_OUTPUT
)
echo "$output"
output="${output//'%'/'%25'}"
output="${output//$'\n'/'%0A'}"
output="${output//$'\r'/'%0D'}"
echo "action_output=$output" >> $GITHUB_OUTPUT

0 comments on commit 36a5406

Please sign in to comment.