Commit 1810bef
ci: fix wrong filter on push event
The forked repo non main branch won't trigger workflow, is hard for
preparing pull request on non main branch in forked repo.
First of all, we should trigger push event on any branch, the current
filter is wrong, which won't trigger workflow on **forked repo** push event.
The grammar is wrong by the document: https://docs.github.com/en/actions/how-tos/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#example-including-and-excluding-branches
> If you define a branch with the ! character, you must also define at least one branch without the ! character. If you only want to exclude branches, use branches-ignore instead.
Secondly, the main branch should trigger commit build in case of merge or rebase
with pull requests.1 parent 3aecf38 commit 1810bef
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments