-
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (65 loc) · 2.06 KB
/
prepare-qa-kit.yml
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
name: Prepare Rete QA & Kit
on:
workflow_dispatch:
inputs:
qa:
description: 'Rete QA <name>@<version> or <owner>/<repo>#<version>'
type: string
default: 'rete-qa@latest'
kit:
description: 'Rete Kit <name>@<version> or <owner>/<repo>#<version>'
type: string
default: 'rete-kit@latest'
workflow_call:
inputs:
qa:
description: 'Rete QA <name>@<version> or <owner>/<repo>#<version>'
type: string
default: 'rete-qa@latest'
kit:
description: 'Rete Kit <name>@<version> or <owner>/<repo>#<version>'
type: string
default: 'rete-kit@latest'
outputs:
qa-path:
description: 'Path to Rete QA package'
value: ${{ jobs.pack-qa.outputs.path }}
qa-artifact:
description: 'Artifact name with Rete QA'
value: ${{ jobs.pack-qa.outputs.artifact }}
kit-path:
description: 'Path to Rete Kit package'
value: ${{ jobs.pack-kit.outputs.path }}
kit-artifact:
description: 'Artifact name with Rete Kit'
value: ${{ jobs.pack-kit.outputs.artifact }}
jobs:
pack-qa:
name: Rete QA
uses: ./.github/workflows/prepare-cli.yml
with:
package: ${{ inputs.qa }}
secrets:
RETE_QA_PUBLIC_PULL: ${{ secrets.RETE_QA_PUBLIC_PULL }}
pack-kit:
name: Rete Kit
uses: ./.github/workflows/prepare-cli.yml
with:
package: ${{ inputs.kit }}
secrets:
RETE_QA_PUBLIC_PULL: ${{ secrets.RETE_QA_PUBLIC_PULL }}
summary:
name: 'Summary: ${{ matrix.target.name }}'
needs: [pack-qa, pack-kit]
runs-on: ubuntu-latest
strategy:
matrix:
target:
- { name: 'Rete QA', needs: 'pack-qa' }
- { name: 'Rete Kit', needs: 'pack-kit' }
steps:
- name: ${{ matrix.target.name }}
run: |
path=${{ needs[matrix.target.needs].outputs.path }}
artifact=${{ needs[matrix.target.needs].outputs.artifact }}
echo "${{ matrix.target.name }} available at $path $([ $artifact ] && echo "in artifact $artifact" || echo "")"