diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebce4aca..9563ba0e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,16 @@ name: CI -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: migrations: - if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest services: postgres: @@ -40,7 +46,6 @@ jobs: DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg test: - if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest services: postgres: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 69c6415cf..beeec8c5a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,13 @@ name: Lint -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: {} diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 2cad486bd..9988fe79d 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,10 +1,16 @@ name: Check collectstatic -on: [push, pull_request, workflow_dispatch] +on: + push: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: collectstatic: - if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Check out repository