Skip to content

Commit e5a3def

Browse files
tpluscodejsmrcaga
authored andcommitted
fix: usage in monorepo
1 parent 8db2b71 commit e5a3def

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ inputs:
3939
description: Deployment Subdomain name
4040
required: false
4141
default: ""
42+
monorepo_package:
43+
description: In monorepos, package to deploy
44+
required: false
45+
default: ""
4246
outputs:
4347
NETLIFY_OUTPUT:
4448
description: netlify command output
@@ -63,8 +67,8 @@ runs:
6367
INSTALL_COMMAND: ${{ inputs.install_command }}
6468
BUILD_COMMAND: ${{ inputs.build_command }}
6569
DEPLOY_ALIAS: ${{ inputs.deploy_alias }}
70+
MONOREPO_PACKAGE: ${{ inputs.monorepo_package }}
6671

67-
6872
branding:
6973
icon: activity
7074
color: blue

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ then
3535
COMMAND+=" --alias ${DEPLOY_ALIAS}"
3636
fi
3737

38+
if [[ -n "${MONOREPO_PACKAGE}" ]]
39+
then
40+
COMMAND+=" --filter ${MONOREPO_PACKAGE}"
41+
fi
42+
3843
OUTPUT=$(sh -c "$COMMAND")
3944

4045
# Set outputs
@@ -57,4 +62,4 @@ echo "EOF" >> $GITHUB_ENV
5762

5863
echo "NETLIFY_LIVE_URL<<EOF" >> $GITHUB_ENV
5964
echo "$NETLIFY_LIVE_URL" >> $GITHUB_ENV
60-
echo "EOF" >> $GITHUB_ENV
65+
echo "EOF" >> $GITHUB_ENV

0 commit comments

Comments
 (0)