wangyoucao577/go-release-action

Why it can't trigger by scheduled.

fscarmen opened this issue · 1 comments

My workflow is trying to detect updates to an app every hour, and when it's officially updated, I release it and abort if it's not. This project reports an error that schedule is not supported

image

Customizable release tag to support publish binaries per push or workflow_dispatch(manually trigger).

Oh, the action only allows expected triggers at the moment, because some people uses wrong triggers at very early days. Welcome PR to add schedule trigger or remove the limitaiton.

# prompt error if non-supported event
if [ ${GITHUB_EVENT_NAME} == 'release' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
elif [ ${GITHUB_EVENT_NAME} == 'push' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
elif [ ${GITHUB_EVENT_NAME} == 'workflow_dispatch' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
elif [ ${GITHUB_EVENT_NAME} == 'workflow_run' ]; then
echo "Event: ${GITHUB_EVENT_NAME}"
else
echo "Unsupport event: ${GITHUB_EVENT_NAME}!"
exit 1
fi