Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ echo "Running Netlify CLI command..."

npx netlify-cli@20 --help

echo "> npx netlify-cli@20 $*"
echo "> npx netlify-cli@20 $1"

set -o pipefail
OUTPUT=$(bash -c "npx netlify-cli@20 $*" | tr '\n' ' ') || exit $?
OUTPUT=$(bash -c "npx netlify-cli@20 $1" | tr '\n' ' ') || exit $?
set +o pipefail

echo "Done!"
Expand Down
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ runs:
using: composite
steps:
- id: script
run: $GITHUB_ACTION_PATH/action.sh ${{ inputs.args }}
run: $GITHUB_ACTION_PATH/action.sh "$NETLIFY_ARGS"
shell: bash
env:
NETLIFY_ARGS: ${{ inputs.args }}
outputs:
NETLIFY_OUTPUT:
description: "Raw Netlify CLI output message"
Expand Down