From de7ccda508d49fd97c0a1770e531b6fd31be96ed Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 28 Nov 2026 03:43:09 +0800 Subject: [PATCH] Update website.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 pull_request 触发类型中加入 closed 并在作业条件中跳过 closed 事件,使 PR 合并或关闭时通过并发组自动取消进行中的 PR 校验。 --- .github/workflows/website.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 9779380e43..455913e632 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -4,6 +4,7 @@ on: push: branches: [master] pull_request: + types: [opened, synchronize, reopened, closed] paths: - '.github/workflows/website.yml' - 'README.md' @@ -26,6 +27,7 @@ concurrency: jobs: website: + if: github.event_name != 'pull_request' || github.event.action != 'closed' runs-on: ubuntu-24.04 timeout-minutes: 25 env: