Skip to content

Commit 45a732f

Browse files
authored
Prevent duplicate CI runs, also work with PRs from forks (#1443)
* Prevent duplicate CI runs * Trigger CI on pull requests from forks
1 parent 5eb5fe2 commit 45a732f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/lint.yml

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

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
47

58
jobs:
69
build:

.github/workflows/tests.yml

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

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
47

58
jobs:
69
build:

0 commit comments

Comments
 (0)