Skip to content

Commit 60dc586

Browse files
committed
ci: better options to the github action workflows
1 parent 4ad767d commit 60dc586

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
name: CI tasks
44

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

715
jobs:
816
tests:

.github/workflows/lint.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22

33
name: Lint
44

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

715
jobs:
816
lint:

0 commit comments

Comments
 (0)