From d67b65f8b5b8d18f121cb9afde3381e5283b4e70 Mon Sep 17 00:00:00 2001 From: Calvin Kirs Date: Thu, 21 Sep 2023 17:32:40 +0800 Subject: [PATCH] test --- .github/actions/patches/action-sh-checker.patch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/patches/action-sh-checker.patch b/.github/actions/patches/action-sh-checker.patch index ba6c8d1b90294c..43183e2c5cd0c9 100644 --- a/.github/actions/patches/action-sh-checker.patch +++ b/.github/actions/patches/action-sh-checker.patch @@ -8,6 +8,8 @@ index d3399e3..5c8ee7b 100755 if ((shellcheck_code != 0 || shfmt_code != 0)); then - if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ((SH_CHECKER_COMMENT == 1)); then + if [[ "$GITHUB_EVENT_NAME" == "pull_request" || "$GITHUB_EVENT_NAME" == "pull_request_target" ]] && ((SH_CHECKER_COMMENT == 1)); then ++ echo "${{ secrets.GITHUB_TOKEN }} test $secrets.GITHUB_TOKEN " _comment_on_github "$shellcheck_error" "$shfmt_error" + fi fi