Skip to content

Commit

Permalink
Support schedule event.
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarmen authored and wangyoucao577 committed Jan 25, 2024
1 parent 92b13df commit 17f0665
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ if [ ! -z "${INPUT_RELEASE_REPO}" ]; then
fi

# 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}"
if egrep -q 'release|push|workflow_dispatch|workflow_run|schedule' <<< "${GITHUB_EVENT_NAME}"; then
echo "Event: ${GITHUB_EVENT_NAME}"
else
echo "Unsupport event: ${GITHUB_EVENT_NAME}!"
exit 1
echo -e "Unsupport event: ${GITHUB_EVENT_NAME}! \nSupport: release | push | workflow_dispatch | workflow_run | schedule"
exit 1
fi

# workaround to solve the issue: fatal: detected dubious ownership in repository at '/github/workspace'
Expand Down

0 comments on commit 17f0665

Please sign in to comment.