-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
48 lines (46 loc) · 1.33 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
# action.yaml
name: 'BotCity Actions - Bots'
description: 'Deploy, update and release bots to BotCity Maestro'
inputs:
botId:
description: 'Bot Id'
required: true
update:
description: 'Is update?'
required: false
default: false
deploy:
description: 'Is deploy?'
required: false
default: false
release:
description: 'Is release?'
required: false
default: false
version:
description: 'Version number?'
required: false
default: ""
technology:
description: 'Technology?'
required: true
botPath:
description: 'Path to compress bot?'
required: true
branding:
icon: 'settings'
color: 'orange'
runs:
using: 'composite'
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: pip install -r ${{ github.action_path }}/requirements.txt
shell: bash
- name: Run botcity action
id: botcity-action
run: python ${{ github.action_path }}/main.py --update=${{ inputs.update }} --deploy=${{ inputs.deploy }} --release=${{ inputs.release }} --version=${{ inputs.version }} --botId=${{ inputs.botId }} --path=${{ github.workspace }} --botPath=${{ inputs.botPath }} --technology=${{ inputs.technology }} --actionPath=${{ github.action_path }}
shell: bash