Skip to content

Commit 7a12293

Browse files
authored
Add checks to run deploy workflow, post other workflows (#840)
Signed-off-by: Tarun Arora <tarun.arora.030402@gmail.com>
1 parent c3fe44a commit 7a12293

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/sp-deployment-pipeline.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ name: Deploy sample platform
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches: [ master ]
5+
workflow_run:
6+
workflows: [ "Run tests and code checks" ]
7+
types: [ completed ]
8+
branches:
9+
- "master"
710

811
env:
912
DEPLOY_BRANCH: master
1013

1114
jobs:
1215
deploy:
1316
runs-on: ubuntu-latest
17+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1418
permissions:
1519
id-token: write
1620
contents: read # required for actions/checkout

0 commit comments

Comments
 (0)