-
Notifications
You must be signed in to change notification settings - Fork 9
125 lines (116 loc) · 3.62 KB
/
dispatch_create_release_branch_all.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: "[dispatch] create release branch all"
on:
workflow_dispatch:
inputs:
branch_name:
description: enter branch (release-x.y)
required: true
default: 'release-1.0'
env:
BRANCH_NAME: ${{ github.event.inputs.branch_name }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
jobs:
core_python_core:
if: github.repository_owner == 'cloudforet-io'
runs-on: ubuntu-latest
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/python-core
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
core_api:
needs: core_python_core
runs-on: ubuntu-latest
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/api
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
core_console:
needs: core_api
runs-on: ubuntu-latest
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/console
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
core_console_api:
needs: core_console
runs-on: ubuntu-latest
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/console-api
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
core_python_service:
strategy:
fail-fast: false
max-parallel: 4
matrix:
target: ['identity', 'secret', 'repository', 'plugin', 'config', 'inventory', 'monitoring', 'statistics', 'cost-analysis', 'notification', 'board', 'file-manager', 'dashboard', 'console-api-v2', 'supervisor']
needs: core_console_api
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/${{ matrix.target }}
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
tools:
strategy:
fail-fast: false
matrix:
target: ['spacectl']
needs: core_python_service
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/${{ matrix.target }}
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
doc:
strategy:
fail-fast: false
matrix:
target: ['api-doc', 'docs', 'marketplace-assets']
needs: tools
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: task
uses: benc-uk/workflow-dispatch@v1
with:
token: ${{ secrets.PAT_TOKEN }}
repo: cloudforet-io/${{ matrix.target }}
workflow: dispatch_create_branch.yaml
inputs: '{"branch_name": "${{ env.BRANCH_NAME }}"}'
notify_to_slack:
needs: [doc]
runs-on: ubuntu-latest
steps:
- name: Slack
if: always()
uses: 8398a7/[email protected]
with:
status: ${{job.status}}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
author_name: Github Action Slack