File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,18 @@ name: .NET CI
6
6
on :
7
7
# Run the workflow on all branch pushes and pull requests
8
8
push :
9
- branches : ["*"]
9
+ branches-ignore :
10
+ - ' dependabot/**' # avoid duplicates: only run the PR, not the push
11
+ - ' gh-pages' # github pages do not trigger all tests
12
+ tags-ignore :
13
+ - ' v*' # avoid rerun existing commit on release
10
14
pull_request :
11
- branches : ["*"]
15
+ branches :
16
+ - ' main'
12
17
13
18
jobs :
14
19
build :
15
- if : github.event_name != 'push' || github.event.pull_request.merged == false
20
+ if : ( github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork) || (github.event_name == 'pull_request' && (github.event.pull_request.head.repo.fork || startsWith(github.head_ref, 'dependabot/')))
16
21
# Use an Ubuntu-based container to build the project
17
22
runs-on : ubuntu-latest
18
23
You can’t perform that action at this time.
0 commit comments