Skip to content

Commit

Permalink
Only build all binaries on push to master. (Velocidex#513)
Browse files Browse the repository at this point in the history
This ensures only accepted PRs are available for users.
  • Loading branch information
scudette authored Jul 27, 2020
1 parent ac14113 commit b5dad23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Only trigger when a PR is committed.
name: Linux Build All Arches
on:
push:
pull_request:
types: [closed]
branches:
- main
- master

jobs:
build:
if: github.event.pull_request.merged
name: Build
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Windows Test
on: [push, pull_request]
on: [create, pull_request]
jobs:
build:
name: Windows Test
Expand Down

0 comments on commit b5dad23

Please sign in to comment.