Skip to content

Commit

Permalink
Support pull_request event
Browse files Browse the repository at this point in the history
  • Loading branch information
Simple-Tracker authored and wangyoucao577 committed Feb 14, 2024
1 parent daaaa1d commit 588e24a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ if [ ! -z "${INPUT_RELEASE_REPO}" ]; then
fi

# prompt error if non-supported event
if egrep -q 'release|push|workflow_dispatch|workflow_run|schedule' <<<"${GITHUB_EVENT_NAME}"; then
if egrep -q 'release|push|pull_request|workflow_dispatch|workflow_run|schedule' <<<"${GITHUB_EVENT_NAME}"; then
echo "Event: ${GITHUB_EVENT_NAME}"
else
echo -e "Unsupport event: ${GITHUB_EVENT_NAME}! \nSupport: release | push | workflow_dispatch | workflow_run | schedule"
echo -e "Unsupport event: ${GITHUB_EVENT_NAME}! \nSupport: release | push | pull_request | workflow_dispatch | workflow_run | schedule"
exit 1
fi

Expand Down

0 comments on commit 588e24a

Please sign in to comment.