Skip to content

Commit 9e5074d

Browse files
committed
Don't try to chain workflows
1 parent 8992411 commit 9e5074d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build-and-push.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Build & Push Container Image
22

3+
# Push a container image when the main branch is pushed or when
4+
# a release is published. This isn't dependant on the tests passing
5+
# or the linter being happy.
36
on:
4-
workflow_run:
5-
workflows: [Test & Lint]
6-
types: [completed]
7+
push:
78
branches: [main]
89
release:
9-
types: [ published ]
10+
types: [published]
1011

1112
env:
1213
REGISTRY: ghcr.io
@@ -15,7 +16,6 @@ env:
1516
jobs:
1617
build-and-push:
1718
runs-on: ubuntu-latest
18-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1919
permissions:
2020
contents: read
2121
packages: write

.github/workflows/test-and-lint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Test & Lint
22

3+
# Run the tests on any branch push
34
on:
45
push
56

0 commit comments

Comments
 (0)