Skip to content

Commit 4e1b2b5

Browse files
committed
feat: runs image build and publish if lint/test pass
Signed-off-by: ChrisJBurns <[email protected]>
1 parent 8fc42d1 commit 4e1b2b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/image-build-and-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ on:
55
branches: [ main ]
66
pull_request:
77
branches: [ main ]
8+
workflow_run:
9+
workflows: ["Linting", "Tests"] # Name of the workflow you want to wait for
10+
types:
11+
- completed
812

913
jobs:
1014
image-build-and-publish:
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1116
runs-on: ubuntu-latest
1217
permissions:
1318
contents: write

0 commit comments

Comments
 (0)