From 4ca1eda83ac22ff306cb380bd57c418cac44feba Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Thu, 8 Feb 2024 20:26:14 -0500 Subject: [PATCH] fix(github-actions): modify triggering conditions for workflows (#420) --- .github/workflows/test.yml | 6 +++++- .github/workflows/test_docs.yml | 7 +++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8fe0d54ef..62c3c3df7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,9 @@ name: Test -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main jobs: release: diff --git a/.github/workflows/test_docs.yml b/.github/workflows/test_docs.yml index 87e7c1322..f9bfabd78 100644 --- a/.github/workflows/test_docs.yml +++ b/.github/workflows/test_docs.yml @@ -1,6 +1,9 @@ name: Test Docs -on: [push, pull_request] - +on: + pull_request: + push: + branches: + - master jobs: release: runs-on: ubuntu-latest