Skip to content

Commit

Permalink
Prevent duplicate CI runs, also work with PRs from forks (#1443)
Browse files Browse the repository at this point in the history
* Prevent duplicate CI runs

* Trigger CI on pull requests from forks
  • Loading branch information
kiendang committed Aug 5, 2023
1 parent 5eb5fe2 commit 45a732f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint

on: [push, pull_request]
on:
push:
branches: ["main"]
pull_request:

jobs:
build:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Tests

on: [push, pull_request]
on:
push:
branches: ["main"]
pull_request:

jobs:
build:
Expand Down

0 comments on commit 45a732f

Please sign in to comment.