on main help sign in
ci: only run `build` and `lint` workflows once in pull requests
52dcef6Andrey Nering
.github/workflows/build.yml+4−1
@@ -1,5 +1,8 @@
1name: build
1name: build
2−on: [push, pull_request]
2+on:
3+ push:
4+ branches: [main]
5+ pull_request:
3
6
4permissions:
7permissions:
5 contents: read
8 contents: read
.github/workflows/lint.yml+1
@@ -1,6 +1,7 @@
1name: lint
1name: lint
2on:
2on:
3 push:
3 push:
4+ branches: [main]
4 pull_request:
5 pull_request:
5
6
6jobs:
7jobs: