-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 2.3 KB
/
interative-inputs.yml
File metadata and controls
61 lines (57 loc) · 2.3 KB
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
name: '[Example] Interactive Inputs'
on:
workflow_dispatch:
jobs:
interactive-inputs:
timeout-minutes: 3
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Example Interactive Inputs Step
id: interactive-inputs
uses: boasihq/interactive-inputs@main
with:
ngrok-authtoken: ${{ secrets.NGROK_AUTHTOKEN }}
timeout: 300
title: 'A batch of 10 feature flags have been added to be deployed. Would you like to proceed?'
interactive: |
fields:
- label: continue-roll-out
properties:
display: Continue to roll out?
defaultValue: 'false'
type: boolean
required: true
- label: exclude-domains
properties:
description: Select the domains to exclude from the roll out
display: Exclude domain(s)
type: multiselect
choices:
["Payments", "Bookings", "Notifications", "Support"]
- label: requested-files
properties:
display: Upload desired files
type: multifile
required: true
description: Upload desired files that are to be uploaded to the runner for processing
- label: notes
properties:
display: Additional note(s)
type: textarea
description: Additional notes on why this decision has been made are to be added to the audit trail.
- name: Display Outputs
shell: bash
run: |
echo "Display Outputs"
echo -e "\n==============================\n"
echo "Detected Outputs: ${{join(steps.interactive-inputs.outputs.*, '\n')}}"
echo -e "\n==============================\n"
- name: List the uploaded files in the directory
shell: bash
run: |
echo "Display uploaded files"
echo -e "\n==============================\n"
ls -la ${{ steps.interactive-inputs.outputs.requested-files }} # Use the label of the multifile/file field as the key to get the uploaded file directory
echo -e "\n==============================\n"