Skip to content

Commit

Permalink
Trigger workflows on push
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Lezar <[email protected]>
  • Loading branch information
elezar committed Nov 21, 2023
1 parent 037a922 commit 566d326
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ on:
branches:
- main
- release-*
push:
branches:
- main
- release-*

jobs:
build-image:
# We trigger builds on MERGED pull requests or on non-closed PRs that are not created against a fork.
if: |
(github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) ||
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository)
(github.event_name == 'pull_request' && github.event.action != 'closed' && github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'push')
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/golang-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@

name: Golang

on: [ pull_request ]
on:
pull_request:
branches:
- main
- release-*
push:
branches:
- main
- release-*

jobs:
check:
Expand Down

0 comments on commit 566d326

Please sign in to comment.