diff --git a/.github/workflows/centreon-collect.yml b/.github/workflows/centreon-collect.yml index 712a5229d3..6e272094e4 100644 --- a/.github/workflows/centreon-collect.yml +++ b/.github/workflows/centreon-collect.yml @@ -127,7 +127,13 @@ jobs: deliver-sources: runs-on: [self-hosted, common] needs: [get-environment, package] - if: ${{ contains(fromJson('["stable"]'), needs.get-environment.outputs.stability) && github.event_name != 'workflow_dispatch' }} + if: | + github.event_name != 'workflow_dispatch' && + needs.get-environment.outputs.stability == 'stable' && + ! cancelled() && + ! contains(needs.*.result, 'failure') && + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' steps: - name: Checkout sources @@ -151,7 +157,8 @@ jobs: contains(fromJson('["testing"]'), needs.get-environment.outputs.stability) && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' needs: [get-environment, package] runs-on: [self-hosted, common] strategy: @@ -199,7 +206,8 @@ jobs: contains(fromJson('["testing"]'), needs.get-environment.outputs.stability) && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' needs: [get-environment, package] runs-on: [self-hosted, common] strategy: @@ -236,7 +244,8 @@ jobs: if: | needs.get-environment.outputs.is_nightly == 'true' && github.run_attempt == 1 && failure() && - startsWith(github.ref_name, 'dev') + startsWith(github.ref_name, 'dev') && + github.repository == 'centreon/centreon-collect' uses: ./.github/actions/create-jira-ticket with: jira_base_url: ${{ secrets.JIRA_BASE_URL }} @@ -252,7 +261,9 @@ jobs: (contains(fromJson('["stable", "testing"]'), needs.get-environment.outputs.stability) && github.event_name != 'workflow_dispatch') && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' + runs-on: [self-hosted, common] strategy: matrix: diff --git a/.github/workflows/docker-builder.yml b/.github/workflows/docker-builder.yml index dbf4d0b72b..e1d07f8345 100644 --- a/.github/workflows/docker-builder.yml +++ b/.github/workflows/docker-builder.yml @@ -18,6 +18,7 @@ on: jobs: get-environment: + if: github.repository == 'centreon/centreon-collect' uses: ./.github/workflows/get-environment.yml with: version_file: CMakeLists.txt diff --git a/.github/workflows/gorgone.yml b/.github/workflows/gorgone.yml index c191e37581..58b8d1b783 100644 --- a/.github/workflows/gorgone.yml +++ b/.github/workflows/gorgone.yml @@ -144,7 +144,8 @@ jobs: needs.get-environment.outputs.stability == 'stable' && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' steps: - name: Checkout sources @@ -168,7 +169,8 @@ jobs: contains(fromJson('["unstable", "testing"]'), needs.get-environment.outputs.stability) && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' strategy: matrix: @@ -198,7 +200,8 @@ jobs: contains(fromJson('["unstable", "testing"]'), needs.get-environment.outputs.stability) && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' strategy: matrix: @@ -227,7 +230,9 @@ jobs: (contains(fromJson('["stable", "testing"]'), needs.get-environment.outputs.stability) && github.event_name != 'workflow_dispatch') && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' + runs-on: [self-hosted, common] strategy: matrix: diff --git a/.github/workflows/libzmq.yml b/.github/workflows/libzmq.yml index 8a8203c965..b50c0bc668 100644 --- a/.github/workflows/libzmq.yml +++ b/.github/workflows/libzmq.yml @@ -232,7 +232,8 @@ jobs: (contains(fromJson('["stable", "testing"]'), needs.get-environment.outputs.stability) && github.event_name != 'workflow_dispatch') && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' runs-on: [self-hosted, common] strategy: matrix: diff --git a/.github/workflows/lua-curl.yml b/.github/workflows/lua-curl.yml index d4da280911..cf500b4dd2 100644 --- a/.github/workflows/lua-curl.yml +++ b/.github/workflows/lua-curl.yml @@ -221,7 +221,8 @@ jobs: (contains(fromJson('["stable", "testing"]'), needs.get-environment.outputs.stability) && github.event_name != 'workflow_dispatch') && ! cancelled() && ! contains(needs.*.result, 'failure') && - ! contains(needs.*.result, 'cancelled') + ! contains(needs.*.result, 'cancelled') && + github.repository == 'centreon/centreon-collect' runs-on: [self-hosted, common] strategy: matrix: diff --git a/.github/workflows/rebase-master.yml b/.github/workflows/rebase-master.yml index e9336085c6..9f6154df45 100644 --- a/.github/workflows/rebase-master.yml +++ b/.github/workflows/rebase-master.yml @@ -13,7 +13,7 @@ jobs: main: name: Sync Stable Branches runs-on: ubuntu-24.04 - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true && github.repository == 'centreon/centreon-collect' steps: - name: git checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/rebase-version.yml b/.github/workflows/rebase-version.yml index 8c3f36d26c..eb5c3eb8f8 100644 --- a/.github/workflows/rebase-version.yml +++ b/.github/workflows/rebase-version.yml @@ -13,7 +13,7 @@ jobs: main: name: Sync Stable Branches runs-on: ubuntu-24.04 - if: github.event.pull_request.merged == true + if: github.event.pull_request.merged == true && github.repository == 'centreon/centreon-collect' steps: - name: git checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa40dc0d7e..3d48f8e707 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ on: jobs: release: - if: ${{ github.event.pull_request.merged == true }} + if: ${{ github.event.pull_request.merged == true && github.repository == 'centreon/centreon-collect' }} runs-on: ubuntu-24.04 steps: - name: Check base_ref diff --git a/.github/workflows/windows-agent.yml b/.github/workflows/windows-agent.yml index d852a53bac..7a7a01f75f 100644 --- a/.github/workflows/windows-agent.yml +++ b/.github/workflows/windows-agent.yml @@ -33,6 +33,7 @@ jobs: version_file: CMakeLists.txt build-and-test-agent: + if: github.repository == 'centreon/centreon-collect' needs: [get-environment] runs-on: windows-latest env: