diff --git a/.github/workflows/asyncapi.yml b/.github/workflows/asyncapi.yml index 3e8f9b6c2..1710c6328 100644 --- a/.github/workflows/asyncapi.yml +++ b/.github/workflows/asyncapi.yml @@ -3,11 +3,6 @@ name: AsyncAPI on: - push: - branches: - - main - tags: - - "*" pull_request: merge_group: types: [checks_requested] diff --git a/.github/workflows/backstage.yml b/.github/workflows/backstage.yml index a460e1033..b07e3447b 100644 --- a/.github/workflows/backstage.yml +++ b/.github/workflows/backstage.yml @@ -1,11 +1,6 @@ name: Backstage on: - push: - branches: - - main - tags: - - '*' pull_request: merge_group: types: [checks_requested] diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db6190d00..8da5185b5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,16 @@ on: types: [checks_requested] jobs: + # Check jobs skip pushes to main: merge_group already ran them on the same commit. + # docs still runs there because publish.yml deploys the main docs from it. lint: + if: github.ref != 'refs/heads/main' uses: ./.github/workflows/_tox.yml with: tox: pre-commit,type-checking test: + if: github.ref != 'refs/heads/main' strategy: matrix: runs-on: ["ubuntu-latest"] # can add windows-latest, macos-latest @@ -32,11 +36,12 @@ jobs: python-version: ${{ matrix.python-version }} system-test: + if: github.ref != 'refs/heads/main' uses: ./.github/workflows/_system_test.yml container: needs: test - if: ${{ !cancelled() }} + if: ${{ !cancelled() && github.ref != 'refs/heads/main' }} uses: ./.github/workflows/_container.yml with: publish: ${{ needs.test.result == 'success' }} @@ -53,6 +58,7 @@ jobs: html-dir: build/html dist: + if: github.ref != 'refs/heads/main' uses: ./.github/workflows/_dist.yml pypi: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d32c2fb97..27f73884f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -22,8 +22,6 @@ on: tags: - '*' pull_request: - merge_group: - types: [checks_requested] jobs: analyze: