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"
|
2022-10-17 04:33:12 +00:00
|
|
|
# updating from
|
2022-10-18 23:16:07 +00:00
|
|
|
# https://github.com/orgs/community/discussions/26288#discussioncomment-3876281
|
2022-10-17 04:33:12 +00:00
|
|
|
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
|
2022-10-18 23:16:07 +00:00
|
|
|
delimiter=$(cat /proc/sys/kernel/random/uuid)
|
|
|
|
echo "result<<${delimiter}" >> "${GITHUB_OUTPUT}"
|
|
|
|
echo "${RESULT}" >> "${GITHUB_OUTPUT}"
|
|
|
|
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
|