From cc072f4116e9191c09b339cd78f32808638681f7 Mon Sep 17 00:00:00 2001 From: SimpleTracker <127669191+Simple-Tracker@users.noreply.github.com> Date: Sat, 10 Feb 2024 23:22:06 +0800 Subject: [PATCH] Support pull_request event --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index e90b322..f8094b0 100755 --- a/release.sh +++ b/release.sh @@ -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