Adding support to get payload parameters and to get the deploy task

This commit is contained in:
Andreas Heim
2019-06-07 16:04:24 -04:00
parent 7073d868a4
commit bdf9f18ffe
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/sh
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/"$//'