mirror of
https://github.com/yldio/copilot.git
synced 2024-11-10 21:30:06 +02:00
New implementation of detecting when to publish ui
This commit is contained in:
parent
d54f8d4704
commit
22dd961fce
@ -4,5 +4,9 @@
|
||||
# Prelude
|
||||
#
|
||||
set -euo pipefail
|
||||
# Set internal field seperator to `/` to split up urls
|
||||
IFS='/'
|
||||
|
||||
[[ $(git diff --name-only) == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
|
||||
read -ra ADDR <<< "$CIRCLE_COMPARE_URL"
|
||||
|
||||
[[ $(git diff --name-only "${ADDR[-1]}") == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
|
||||
|
Loading…
Reference in New Issue
Block a user