From 84ba8d04872fcf261a09c8229fb76b7bf3c3f7f5 Mon Sep 17 00:00:00 2001 From: Slim Amamou Date: Wed, 27 Aug 2025 16:32:37 +0100 Subject: [PATCH] Fix disabled CI CD for all non pull requests --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8cdda24..035a63d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,12 +30,12 @@ jobs: # deploy build: - if: 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: Build uses: ./.github/workflows/build.yml deploy: - if: 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 afe4abe..2fcca0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ on: jobs: build: - if: 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: Docker build runs-on: ubuntu-latest steps: