Skip to content

Commit de7ccda

Browse files
committed
Update website.yml
在 pull_request 触发类型中加入 closed 并在作业条件中跳过 closed 事件,使 PR 合并或关闭时通过并发组自动取消进行中的 PR 校验。
1 parent bd47ff1 commit de7ccda

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/website.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7+
types: [opened, synchronize, reopened, closed]
78
paths:
89
- '.github/workflows/website.yml'
910
- 'README.md'
@@ -26,6 +27,7 @@ concurrency:
2627

2728
jobs:
2829
website:
30+
if: github.event_name != 'pull_request' || github.event.action != 'closed'
2931
runs-on: ubuntu-24.04
3032
timeout-minutes: 25
3133
env:

0 commit comments

Comments
 (0)