Skip to content

Commit 2622536

Browse files
committed
Optimize CI workflow to avoid duplicate runs
Update GitHub Actions workflow triggers to prevent duplicate CI runs when creating pull requests. Now workflows only run on: - Push events to master branch - Pull request events (opened, synchronize, reopened) This eliminates redundant CI runs when pushing to feature branches and creating PRs.
1 parent 88a807f commit 2622536

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)