From fc5678fc4da45eba0fe6ea3952de2398262b4063 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 13 Jan 2026 15:25:42 -0600 Subject: [PATCH 1/2] maybe fix ci --- .github/workflows/ci.yml | 12 +++++++++--- .github/workflows/lint.yml | 10 +++++++++- .github/workflows/static.yml | 11 +++++++++-- 3 files changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ebce4aca..f0f6a298a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,17 @@ name: CI -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: [main] + 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 +47,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..25d4e4fba 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,14 @@ name: Lint -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: [main] + 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..8194d6e6a 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,10 +1,17 @@ name: Check collectstatic -on: [push, pull_request, workflow_dispatch] +on: + push: + branches: [main] + 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 From ca5fe68747f3832ed2b1c1e3c24f971b5b34c349 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 13 Jan 2026 15:54:26 -0600 Subject: [PATCH 2/2] allow forks' branches to run ci --- .github/workflows/ci.yml | 1 - .github/workflows/lint.yml | 1 - .github/workflows/static.yml | 1 - 3 files changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f6a298a..9563ba0e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,6 @@ name: CI on: push: - branches: [main] pull_request: workflow_dispatch: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 25d4e4fba..beeec8c5a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,6 @@ name: Lint on: push: - branches: [main] pull_request: workflow_dispatch: diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 8194d6e6a..9988fe79d 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -2,7 +2,6 @@ name: Check collectstatic on: push: - branches: [main] pull_request: workflow_dispatch: