Skip to content

Commit 3cc37b4

Browse files
authored
chore: optimize ci (#481)
* chore: prevent ci from running twice on PRs Now CI will only run on push to `master` and PRs to `master`. Previously, it was running twice on each push to a PR branch, once for the PR to `master` and once for pushing to the PR branch.
1 parent 3dd723a commit 3cc37b4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: .github/workflows/ci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: ci
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
39
concurrency:
410
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
511
cancel-in-progress: true

0 commit comments

Comments
 (0)