From c1fa24c8e22c553bf2183b62b6bcfa1aef9d8501 Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Wed, 11 Sep 2024 00:01:46 +0200 Subject: [PATCH] ci: run pr checks only on prs --- .github/workflows/ci.yml | 10 +--------- .github/workflows/pull-request.yml | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de655bb1..1e0953db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,7 @@ name: Continuous Integration -on: - push: - branches: - - main - pull_request: +on: [push: { branches: [ main ]}, pull_request ] jobs: - pr_check: - name: Pull Request Check - uses: ./.github/workflows/pull-request.yml semver: name: cargo-semver-checks @@ -95,7 +88,6 @@ jobs: - name: clippy (default features) run: cargo clippy -- -D warnings - macos: name: macos needs: pr_check diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b0efc7e6..247e8bb5 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,6 +1,5 @@ name: Pull request -# This workflow is triggered on pushes to the repository. -on: [ pull_request, workflow_call, workflow_dispatch ] +on: [ pull_request ] jobs: check: