diff --git a/.github/workflows/tests-cluster-chainsaw.yaml b/.github/workflows/tests-cluster-chainsaw.yaml index fd6db351fe..f51938b13f 100644 --- a/.github/workflows/tests-cluster-chainsaw.yaml +++ b/.github/workflows/tests-cluster-chainsaw.yaml @@ -4,12 +4,17 @@ on: pull_request: branches-ignore: - 'gh-pages' + push: + branches-ignore: + - 'main' + - 'gh-pages' permissions: read-all jobs: test-list: runs-on: ubuntu-24.04 + if: github.event_name != 'push' || github.repository_owner != 'cloudnative-pg' outputs: tests: ${{ steps.listTests.outputs.tests }} steps: diff --git a/.github/workflows/tests-operator.yml b/.github/workflows/tests-operator.yml index 1e44c537b2..7d43337c1d 100644 --- a/.github/workflows/tests-operator.yml +++ b/.github/workflows/tests-operator.yml @@ -4,12 +4,17 @@ on: pull_request: branches-ignore: - 'gh-pages' + push: + branches-ignore: + - 'main' + - 'gh-pages' permissions: read-all jobs: deploy_operator: name: Deploy the operator in cluster-wide mode + if: github.event_name != 'push' || github.repository_owner != 'cloudnative-pg' runs-on: ubuntu-24.04 steps: - name: Checkout @@ -34,6 +39,7 @@ jobs: deploy_operator_single_namespace: name: Deploy the operator in single-namespace mode + if: github.event_name != 'push' || github.repository_owner != 'cloudnative-pg' runs-on: ubuntu-24.04 steps: - name: Checkout diff --git a/.github/workflows/tests-plugin-barman-cloud.yaml b/.github/workflows/tests-plugin-barman-cloud.yaml index 46905894c6..a9c5a7931d 100644 --- a/.github/workflows/tests-plugin-barman-cloud.yaml +++ b/.github/workflows/tests-plugin-barman-cloud.yaml @@ -4,12 +4,17 @@ on: pull_request: branches-ignore: - 'gh-pages' + push: + branches-ignore: + - 'main' + - 'gh-pages' permissions: read-all jobs: test-list: runs-on: ubuntu-24.04 + if: github.event_name != 'push' || github.repository_owner != 'cloudnative-pg' outputs: tests: ${{ steps.listTests.outputs.tests }} steps: