Skip to content

Commit

Permalink
Fix GH actions duplicated builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alancai98 committed Nov 25, 2020
1 parent 41c66ac commit a762ee1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: "Build and Report Generation"
on: [push, pull_request]
on:
push:
pull_request:
branches:
# Branches from forks have the form 'user:branch-name' so we only run
# this job on pull_request events for branches that look like fork
# branches. Without this we would end up running this job twice for non
# forked PRs, once for the push and then once for opening the PR.
# Taken from https://github.uint.cloudmunity/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
- '**:**'

jobs:
test:
Expand Down

0 comments on commit a762ee1

Please sign in to comment.