Prevent building twice when pushing to a PR (#2345)
Created PRs and commit pushes to PRs are all already handled by `pull_request`. Having `push` without limitations causes 2 build runs on every PR commit push. Also the `push` scenario is only required for pushes (direct or merges) to the master branch.
This commit is contained in:
parent
0b20593c39
commit
5e776fc458
1 changed files with 6 additions and 1 deletions
7
.github/workflows/default.yml
vendored
7
.github/workflows/default.yml
vendored
|
|
@ -1,6 +1,11 @@
|
|||
name: Default
|
||||
|
||||
on: [push, pull_request, workflow_call]
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
workflow_call:
|
||||
|
||||
jobs:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue