From b6e3425dbc87fb6c6fb98bf8374c6292c0e0b2c8 Mon Sep 17 00:00:00 2001 From: Ryan Lee Date: Wed, 21 Dec 2022 17:05:12 -0500 Subject: [PATCH] fix: duplicate workflows in push and pull_request (#479) --- .github/workflows/dev-container.yml | 6 ++++-- .github/workflows/fmt.yml | 6 ++++-- .github/workflows/spawn_examples.yml | 8 +++++--- .github/workflows/spellcheck.yml | 6 ++++-- .github/workflows/test.yml | 6 ++++-- 5 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/dev-container.yml b/.github/workflows/dev-container.yml index 72c31273a..cfe0606dc 100644 --- a/.github/workflows/dev-container.yml +++ b/.github/workflows/dev-container.yml @@ -1,7 +1,9 @@ name: Dev Container Builds on: - - pull_request - - push + pull_request: + push: + branches: + - main jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index 48d62420b..a85799f01 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -1,7 +1,9 @@ name: Check Formatting on: - - pull_request - - push + pull_request: + push: + branches: + - main jobs: check: name: Check Formatting diff --git a/.github/workflows/spawn_examples.yml b/.github/workflows/spawn_examples.yml index a95490ad1..a8c6a179c 100644 --- a/.github/workflows/spawn_examples.yml +++ b/.github/workflows/spawn_examples.yml @@ -1,8 +1,10 @@ name: Spawn Examples on: - - workflow_dispatch - - push - - pull_request + workflow_dispatch: + pull_request: + push: + branches: + - main jobs: generate_example_paths: name: Generate example paths diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 1b2d1e792..a664da5a4 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -1,7 +1,9 @@ name: Spellcheck on: - - pull_request - - push + pull_request: + push: + branches: + - main jobs: spellcheck: runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ba5b1c02e..da8904bc3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,9 @@ name: Test on: - - pull_request - - push + pull_request: + push: + branches: + - main jobs: test: name: Run Tests