From 1c240889163d98595ffff339ac21726f2e08a2ac Mon Sep 17 00:00:00 2001 From: Slim Amamou Date: Wed, 27 Aug 2025 16:36:26 +0100 Subject: [PATCH] Fix disabled CICD for all non pull requests --- .github/workflows/cd.yml | 5 +++-- .github/workflows/ci.yml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 035a63d..a32622b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,12 +30,13 @@ jobs: # deploy build: - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + # we run the CD only on pull requests from the same repo + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository name: Build uses: ./.github/workflows/build.yml deploy: - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository name: Deploy needs: [ build ] uses: ./.github/workflows/deploy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fcca0a..fe24f82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,8 @@ on: jobs: build: - if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository + # we run the CD only on pull requests from the same repo + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository name: Docker build runs-on: ubuntu-latest steps: