diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee0b95365..6ebce4aca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch] jobs: migrations: - if: github.event_name != 'push' || github.event.repository.fork == true + if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest services: postgres: @@ -40,7 +40,7 @@ jobs: DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg test: - if: github.event_name != 'push' || github.event.repository.fork == true + if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest services: postgres: @@ -92,4 +92,4 @@ jobs: DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg - name: Check coverage - run: coverage report -m --fail-under=75 \ No newline at end of file + run: coverage report -m --fail-under=75 diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index f34c4bd0e..2cad486bd 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -4,7 +4,7 @@ on: [push, pull_request, workflow_dispatch] jobs: collectstatic: - if: github.event_name != 'push' || github.event.repository.fork == true + if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Check out repository