-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.38 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
45
46
47
48
49
50
51
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-dlp:
needs: distributor
with:
args: ${{ needs.distributor.outputs.args }}
if: ${{ needs.distributor.outputs.run == 'download-videos-dlp' }}
uses: ./.github/workflows/download-videos-dlp.yaml
download-videos-lux:
needs: distributor
with:
args: ${{ needs.distributor.outputs.args }}
if: ${{ needs.distributor.outputs.run == 'download-videos-lux' }}
uses: ./.github/workflows/download-videos-lux.yaml