diff --git a/.github/workflows/tests-cluster-chainsaw.yaml b/.github/workflows/tests-cluster-chainsaw.yaml index 28b7a1c925..cb9656bf42 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-26.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 02bbd94558..44d230abc7 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-26.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-26.04 steps: - name: Checkout diff --git a/.github/workflows/tests-plugin-barman-cloud.yaml b/.github/workflows/tests-plugin-barman-cloud.yaml index 7e90d07fd6..0c06b0ecd5 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-26.04 + if: github.event_name != 'push' || github.repository_owner != 'cloudnative-pg' outputs: tests: ${{ steps.listTests.outputs.tests }} steps: