Skip to content

Commit

Permalink
Edits: print cli command output in run-cli step (#172)
Browse files Browse the repository at this point in the history
* Edits: print cli command output in run-cli step

* Small changes

* Revert: .github/workflows/actions.yml
  • Loading branch information
rusko124 authored Jul 3, 2024
1 parent 1f031a6 commit c8cbb55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
cli_commands:
description: "Your Screenly CLI command(s)."
required: true
print_cli_commands_output:
description: "Print the Screenly CLI command(s) output."
default: "true"
required: false
cli_version:
description: "Screenly CLI version."
default: "v0.2.7"
Expand Down Expand Up @@ -42,5 +46,11 @@ runs:
output=$(API_TOKEN=${{ inputs.screenly_api_token }} /tmp/screenly ${{ inputs.cli_commands }} | tr '\n' ' ')
exit_code=$?
echo "response=$output" >> "$GITHUB_OUTPUT"
if [ "${{ inputs.print_cli_commands_output }}" = "true" ]; then
echo "Screenly CLI command(s) output:"
echo "$output"
fi
exit $exit_code
shell: bash

0 comments on commit c8cbb55

Please sign in to comment.