Skip to content

Commit eb175c4

Browse files
authored
Merge pull request #2402 from onevcat/optimize-ci-workflow
Optimize CI workflow to avoid duplicate runs
2 parents 2d051fa + 2622536 commit eb175c4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ defaults:
44
run:
55
shell: bash -leo pipefail {0}
66

7-
on: [push, pull_request]
7+
on:
8+
push:
9+
branches:
10+
- master
11+
pull_request:
12+
types: [opened, synchronize, reopened]
813

914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ defaults:
44
run:
55
shell: bash -leo pipefail {0}
66

7-
on: [push, pull_request]
7+
on:
8+
push:
9+
branches:
10+
- master
11+
pull_request:
12+
types: [opened, synchronize, reopened]
813

914
concurrency:
1015
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)