mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 17:12:24 +08:00
6 lines
211 B
Bash
Executable File
6 lines
211 B
Bash
Executable File
#!/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/"$//'
|