Skip to content

Commit 5380100

Browse files
mkukawskijsmrcaga
authored andcommitted
Custom netlify path
1 parent 9db6c4e commit 5380100

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

action.yml

+5
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ inputs:
3535
description: Command to install dependencies
3636
required: false
3737
default: ""
38+
netlify_path:
39+
description: Path to netlify CLI binary
40+
required: false
41+
default: "netlify"
3842
build_command:
3943
description: Command to build static website
4044
required: false
@@ -78,6 +82,7 @@ runs:
7882
MONOREPO_PACKAGE: ${{ inputs.monorepo_package }}
7983
DEBUG: ${{ inputs.debug }}
8084
COMMAND_EXTRA_FLAGS: ${{ inputs.command_extra_flags }}
85+
NETLIFY_PATH: ${{ inputs.netlify_path }}
8186

8287
branding:
8388
icon: activity

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export NETLIFY_SITE_ID="${NETLIFY_SITE_ID}"
2626
export NETLIFY_AUTH_TOKEN="${NETLIFY_AUTH_TOKEN}"
2727

2828
# command based on https://cli.netlify.com/commands/deploy
29-
COMMAND="netlify deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\""
29+
COMMAND="${NETLIFY_PATH} deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\""
3030

3131
if [[ "${NETLIFY_DEPLOY_TO_PROD}" == "true" ]]
3232
then

0 commit comments

Comments
 (0)