fix yq syntax
This commit is contained in:
parent
ba1b490f51
commit
af8cdc5260
@ -1,2 +1,2 @@
|
|||||||
- ENHANCEMENT
|
- BUGFIX
|
||||||
- Update dependency mikefarah/yq to v4
|
- Fix `yq` syntax after upgrade to v4
|
||||||
|
@ -7,10 +7,10 @@ exec 5>&1
|
|||||||
OUT=$(/usr/local/bin/lhci "$@" | tee /dev/fd/5) || ERROR=true
|
OUT=$(/usr/local/bin/lhci "$@" | tee /dev/fd/5) || ERROR=true
|
||||||
|
|
||||||
if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
|
if [ -f "$CONFIG" ] && echo "$OUT" | grep -q "Done running Lighthouse"; then
|
||||||
UPLOAD_TARGET=$(yq r "${CONFIG}" --defaultValue "" ci.upload.target)
|
UPLOAD_TARGET=$(yq e '.ci.upload.target' "${CONFIG}")
|
||||||
UPLOAD_OUTPUT_DIR=$(yq r "${CONFIG}" --defaultValue "" ci.upload.outputDir)
|
UPLOAD_OUTPUT_DIR=$(yq e '.ci.upload.outputDir' "${CONFIG}")
|
||||||
|
|
||||||
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ -n "${UPLOAD_OUTPUT_DIR}" ] ; then
|
if [ "${UPLOAD_TARGET}" = "filesystem" ] && [ "${UPLOAD_OUTPUT_DIR:-null}" != "null" ] ; then
|
||||||
MANIFEST=${UPLOAD_OUTPUT_DIR%/}/manifest.json
|
MANIFEST=${UPLOAD_OUTPUT_DIR%/}/manifest.json
|
||||||
DIST="${LHCI_BASE_DIR%/}/${UPLOAD_OUTPUT_DIR%/}/dist"
|
DIST="${LHCI_BASE_DIR%/}/${UPLOAD_OUTPUT_DIR%/}/dist"
|
||||||
mkdir -p "${DIST}"
|
mkdir -p "${DIST}"
|
||||||
|
Loading…
Reference in New Issue
Block a user