Skip to content

Commit 3c7b74b

Browse files
authored
Avoid running all CI steps twice (#433)
Separate `push` and `pull_request` triggers so that pushing to a PR branch doesn't trigger everything twice.
1 parent 7849864 commit 3c7b74b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
37
permissions:
48
contents: write
59
packages: write

0 commit comments

Comments
 (0)