Skip to content

Commit a762ee1

Browse files
committed
Fix GH actions duplicated builds
1 parent 41c66ac commit a762ee1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
name: "Build and Report Generation"
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
pull_request:
5+
branches:
6+
# Branches from forks have the form 'user:branch-name' so we only run
7+
# this job on pull_request events for branches that look like fork
8+
# branches. Without this we would end up running this job twice for non
9+
# forked PRs, once for the push and then once for opening the PR.
10+
# Taken from https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
11+
- '**:**'
312

413
jobs:
514
test:

0 commit comments

Comments
 (0)