diff --git a/action.sh b/action.sh index d4109b4..7dad614 100755 --- a/action.sh +++ b/action.sh @@ -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!" diff --git a/action.yml b/action.yml index 33c61f3..2247589 100644 --- a/action.yml +++ b/action.yml @@ -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"