Skip to content

Commit 5174ea2

Browse files
committed
Add deploy workflows
0 parents  commit 5174ea2

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy Release
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- Testing and Checks
7+
branches:
8+
- v[0-9]+.[0-9]+.[0-9]+
9+
- v[0-9]+.[0-9]+
10+
- v[0-9]+
11+
types:
12+
- completed
13+
14+
jobs:
15+
on-success:
16+
runs-on: ubuntu-latest
17+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
18+
steps:
19+
- run: echo 'The triggering workflow passed'
20+
on-failure:
21+
runs-on: ubuntu-latest
22+
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
23+
steps:
24+
- run: echo 'The triggering workflow failed'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy Staging
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- Testing and Checks
7+
branches:
8+
- main
9+
types:
10+
- completed
11+
12+
jobs:
13+
on-success:
14+
runs-on: ubuntu-latest
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
steps:
17+
- run: echo 'The triggering workflow passed'
18+
on-failure:
19+
runs-on: ubuntu-latest
20+
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
21+
steps:
22+
- run: echo 'The triggering workflow failed'

0 commit comments

Comments
 (0)