From 45a732f1db8cad32cbb62ca1f149b65a37e13d70 Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Sun, 6 Aug 2023 06:45:10 +0800 Subject: [PATCH] Prevent duplicate CI runs, also work with PRs from forks (#1443) * Prevent duplicate CI runs * Trigger CI on pull requests from forks --- .github/workflows/lint.yml | 5 ++++- .github/workflows/tests.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bfafa67..920ecf0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,9 @@ name: Lint -on: [push, pull_request] +on: + push: + branches: ["main"] + pull_request: jobs: build: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c3b9b47..17876a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,9 @@ name: Tests -on: [push, pull_request] +on: + push: + branches: ["main"] + pull_request: jobs: build: