Skip to content

Commit fc5678f

Browse files
committed
maybe fix ci
1 parent 848bab1 commit fc5678f

File tree

3 files changed

+27
-6
lines changed

3 files changed

+27
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
name: CI
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
jobs:
614
migrations:
7-
if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main'
815
runs-on: ubuntu-latest
916
services:
1017
postgres:
@@ -40,7 +47,6 @@ jobs:
4047
DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg
4148

4249
test:
43-
if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main'
4450
runs-on: ubuntu-latest
4551
services:
4652
postgres:

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Lint
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
permissions: {}
614

.github/workflows/static.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
name: Check collectstatic
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
412

513
jobs:
614
collectstatic:
7-
if: github.event_name != 'push' || github.event.repository.fork == true || github.ref == 'refs/heads/main'
815
runs-on: ubuntu-latest
916
steps:
1017
- name: Check out repository

0 commit comments

Comments
 (0)