Skip to content

Commit

Permalink
Merge pull request #29 from elezar/trigger-on-push
Browse files Browse the repository at this point in the history
Trigger workflows on push
  • Loading branch information
elezar authored Nov 21, 2023
2 parents 037a922 + 566d326 commit 720ca15
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 720ca15

Please sign in to comment.