From 7c5f2126d11b5475b936208b15b60ca5d3a6f5e4 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 2 Jun 2024 16:10:52 -0400 Subject: [PATCH] Don't run github workflow twice for push and pull_request --- .github/workflows/pre-commit.yml | 2 +- .github/workflows/pytest.yml | 2 +- .github/workflows/ruff.yml | 2 +- .github/workflows/sanity-check.yml | 2 +- .github/workflows/swagger-validate.yml | 2 +- .github/workflows/swagger.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 79cdce1..b226ca7 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,5 +1,5 @@ name: pre-commit -on: [push, pull_request] +on: [pull_request] jobs: pre-commit: diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index f0305b7..63bef85 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -1,5 +1,5 @@ name: Pytest -on: [push, pull_request] +on: [pull_request] jobs: pytest: runs-on: ubuntu-latest diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index b268138..8e10796 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -1,5 +1,5 @@ name: Ruff -on: [push, pull_request] +on: [pull_request] jobs: ruff: runs-on: ubuntu-latest diff --git a/.github/workflows/sanity-check.yml b/.github/workflows/sanity-check.yml index 3438121..821afe9 100644 --- a/.github/workflows/sanity-check.yml +++ b/.github/workflows/sanity-check.yml @@ -1,5 +1,5 @@ name: Sanity Check -on: [push, pull_request] +on: [pull_request] jobs: sanity-check: runs-on: ubuntu-latest diff --git a/.github/workflows/swagger-validate.yml b/.github/workflows/swagger-validate.yml index 4770220..efcff9e 100644 --- a/.github/workflows/swagger-validate.yml +++ b/.github/workflows/swagger-validate.yml @@ -1,5 +1,5 @@ name: Swagger Validate -on: [push, pull_request] +on: [pull_request] jobs: swagger-validate: runs-on: ubuntu-latest diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index a96310c..cbab95b 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -1,5 +1,5 @@ name: Swagger -on: [push, pull_request] +on: [pull_request] jobs: swagger: runs-on: ubuntu-latest