Skip to content

Commit

Permalink
Fix branches?
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebrody committed Oct 23, 2024
1 parent ad39cb3 commit 9062282
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: main
on:
pull_request:
push:
branches:
- ${{ github.event.repository.default_branch }}
- master
jobs:
check-dockerfile-changes:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -61,7 +62,14 @@ jobs:

run-checks-main-image:
needs: check-dockerfile-changes
if: needs.check-dockerfile-changes.outputs.changed == 'false'
if: needs.check-dockerfile-changes.outputs.changed == 'false' && github.event_name == 'push'
uses: ./.github/workflows/check.yml
with:
test-image: ghcr.io/${{ github.repository }}/e2e:${{ github.event.repository.default_branch }}

run-checks-base-image:
needs: check-dockerfile-changes
if: needs.check-dockerfile-changes.outputs.changed == 'false' && github.event_name == 'pull_request'
uses: ./.github/workflows/check.yml
with:
test-image: ghcr.io/${{ github.repository }}/e2e:${{ github.event.pull_request.base.ref }}

0 comments on commit 9062282

Please sign in to comment.