mirror of
https://github.com/yldio/copilot.git
synced 2024-11-14 07:10:05 +02:00
14 lines
270 B
Bash
Executable File
14 lines
270 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
#
|
|
# Prelude
|
|
#
|
|
set -euo pipefail
|
|
set -x
|
|
# Set internal field seperator to `/` to split up urls
|
|
IFS='/'
|
|
|
|
read -ra ADDR <<< "$CIRCLE_COMPARE_URL"
|
|
|
|
[[ "$(git diff --name-only """${ADDR[-1]}""")" == *"ui/"* ]] && make -C ui publish | sed '/NPM_TOKEN/d'
|