yq/github-action/entrypoint.sh

13 lines
492 B
Bash
Raw Permalink Normal View History

2020-02-24 09:04:45 +00:00
#!/bin/sh -l
2021-07-24 05:06:23 +00:00
set -e
2021-06-08 13:14:00 +00:00
echo "::debug::\$cmd: $1"
RESULT=$(eval "$1")
echo "::debug::\$RESULT: $RESULT"
# updating from
# https://github.com/orgs/community/discussions/26288#discussioncomment-3876281
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
delimiter=$(cat /proc/sys/kernel/random/uuid)
echo "result<<${delimiter}" >> "${GITHUB_OUTPUT}"
echo "${RESULT}" >> "${GITHUB_OUTPUT}"
echo "${delimiter}" >> "${GITHUB_OUTPUT}"