Merge branch 'master' into add_tests

This commit is contained in:
Andreas Heim
2019-06-14 13:04:38 -04:00
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -e
if [ -z "$1" ] ; then
echo "Payload argument must be set. Usage: deployment-get-payload <payload>"
exit 64
fi
BASEDIR=$(dirname "$0")
_payload_field=$1
"${BASEDIR}"/JSON.sh < "${GITHUB_EVENT_PATH}" | grep "\[\"deployment\",\"payload\",\"config\",\"${_payload_field}\"]" | cut -f2 | sed -e 's/^"//' -e 's/"$//'

View File

@@ -0,0 +1,4 @@
#!/bin/sh
BASEDIR=$(dirname "$0")
"${BASEDIR}"/JSON.sh < "${GITHUB_EVENT_PATH}" | grep "\[\"deployment\",\"task\"]" | cut -f2 | sed -e 's/^"//' -e 's/"$//'