Skip to content

Commit 2f95050

Browse files
committed
👷 ci: update ci trigger event, avoid run twice on PR
1 parent 22d5476 commit 2f95050

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

‎.github/workflows/build.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44

55
name: build
66

7-
on: [push, pull_request, workflow_dispatch]
7+
on:
8+
push:
9+
branches: [main]
10+
pull_request:
11+
merge_group:
12+
workflow_dispatch:
813

914
env:
1015
CARGO_TERM_COLOR: always

‎.github/workflows/clippy.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: clippy
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
merge_group:
8+
workflow_dispatch:
49

510
env:
611
CARGO_TERM_COLOR: always

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: Test
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
merge_group:
8+
workflow_dispatch:
49

510
env:
611
CARGO_TERM_COLOR: always

0 commit comments

Comments
 (0)