-
Notifications
You must be signed in to change notification settings - Fork 56
44 lines (41 loc) · 1.23 KB
/
manual-build.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
name: manual-build
on:
workflow_dispatch:
inputs:
applications:
description: 'Applications (comma separated)'
required: true
type: string
runner:
description: 'Runner'
required: true
type: choice
options:
- "ubuntu-22.04"
- "self-hosted"
jobs:
list-apps:
runs-on: ubuntu-22.04
outputs:
app_list: ${{ steps.process_app_list.outputs.app_list }}
runner: ${{ steps.select_runner.outputs.runner }}
steps:
- name: Process input list of applications
id: process_app_list
run: |
app_list="$(echo "${{ github.event.inputs.applications }}" | tr -d " " | jq -rcR 'split(",")')"
echo "app_list=${app_list}"
echo "app_list=${app_list}" >> $GITHUB_OUTPUT
- name: Select runner
id: select_runner
run: |
runner="$(echo "${{ github.event.inputs.runner }}" | tr -d " " | jq -rcR 'split(",")')"
echo "runner=${runner}"
echo "runner=${runner}" >> $GITHUB_OUTPUT
build-apps:
needs: list-apps
uses: ./.github/workflows/build-apps.yml
with:
applications: ${{ needs.list-apps.outputs.app_list }}
runner: ${{ needs.list-apps.outputs.runner }}
secrets: inherit