From 3af8b67a972767df5c78c37d39039b2285c7341d Mon Sep 17 00:00:00 2001 From: Saransh Chopra Date: Thu, 19 Sep 2024 15:12:30 +0100 Subject: [PATCH] if condition for each job --- .github/workflows/examples.yml | 2 +- .github/workflows/test.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b18d21b5..b465a8c2 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -17,9 +17,9 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: - if: github.event.pull_request.draft == false test-examples: name: Test examples + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cba0c2aa..24a405ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,9 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: - if: github.event.pull_request.draft == false tests: name: Tests + if: github.event.pull_request.draft == false runs-on: ubuntu-latest strategy: matrix: @@ -35,6 +35,7 @@ jobs: build: name: Build + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -44,6 +45,7 @@ jobs: docs: name: Docs + if: github.event.pull_request.draft == false runs-on: ubuntu-latest steps: - uses: actions/checkout@v4