-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.12 KB
/
workflow-distributer.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
name: workflow-distributor
on:
issues:
types: [ opened ]
issue_comment:
types: [ created ]
jobs:
distributor:
runs-on: ubuntu-latest
outputs:
run: ${{ steps.distribute.outputs.run }}
args: ${{ steps.distribute.outputs.args }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- id: distribute
name: Distribute Tasks
run: |
npm install
npm run build-distribute
node workflow-distributor/dist/index.js
test:
needs: distributor
with:
args: ${{ needs.distributor.outputs.args }}
if: ${{ needs.distributor.outputs.run == 'test' }}
uses: ./.github/workflows/test.yaml
separate-audios:
needs: distributor
with:
args: ${{ needs.distributor.outputs.args }}
if: ${{ needs.distributor.outputs.run == 'separate-audios' }}
uses: ./.github/workflows/separate-audios.yaml
download-videos:
needs: distributor
with:
args: ${{ needs.distributor.outputs.args }}
if: ${{ needs.distributor.outputs.run == 'download-videos' }}
uses: ./.github/workflows/download-videos.yaml