-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
52 lines (45 loc) · 1.21 KB
/
action.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
52
name: 'StackSpot AI Remote Quick Command Action'
description: 'StackSpot AI Remote Quick Command Action'
inputs:
CLIENT_ID:
description: Account client id
required: true
CLIENT_KEY:
description: Account client secret key
required: true
CLIENT_REALM:
description: Account slug
required: true
QC_SLUG:
description: Quick Command slug
required: true
INPUT_DATA:
description: Remote Quick Command input data
required: true
outputs:
rqc_result:
description: "Remote Quick Command answer"
value: ${{ steps.rqc.outputs.result }}
runs:
using: "composite"
steps:
- name: Setup Python
uses: actions/setup-python@v5.1.0
with:
python-version: '3.10'
- name: Install python libraries
run: pip install requests
shell: bash
- name: Run StackSpot AI Remote Quick Command
id: rqc
run: python3 ${GITHUB_ACTION_PATH}/rqc.py
shell: bash
env:
CLIENT_ID: ${{ inputs.CLIENT_ID }}
CLIENT_KEY: ${{ inputs.CLIENT_KEY }}
CLIENT_REALM: ${{ inputs.CLIENT_REALM }}
QC_SLUG: ${{ inputs.QC_SLUG }}
INPUT_DATA: ${{ inputs.INPUT_DATA }}
branding:
icon: 'terminal'
color: 'gray-dark'