-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
48 lines (48 loc) · 1.44 KB
/
action.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
# action.yml
name: 'Run tool4d!'
author: 'Eric Marchand'
branding:
icon: 'terminal'
color: 'blue'
description: 'Run 4D code using tool4d'
inputs:
project:
description: 'Project to run (* to find it automatically)'
required: false
startup-method:
description: 'Startup method name (to replace database method)'
required: false
user-param:
description: 'user parameters'
required: false
error-flag:
description: 'path of file to check for errors (default "error")'
required: false
product-line:
description: 'tool4d product line'
required: false
version:
description: 'tool4d version'
required: false
build:
description: 'tool4d build number (default latest)'
required: false
token:
description: 'if needed a token to download'
required: false
outputs:
tool4d:
description: 'tool4d binary path.'
value: ${{ steps.download.outputs.tool4d }}
runs:
using: 'composite'
steps:
- id: download
name: ⬇️ Download tool4d
shell: bash
run: bash ${GITHUB_ACTION_PATH}/download.sh "${{ inputs.product-line }}" "${{ inputs.version }}" "${{ inputs.build }}" "${{ inputs.token }}"
- id: run
name: 🚀 Run code
shell: bash
run: |
bash ${GITHUB_ACTION_PATH}/run.sh "${{ inputs.project }}" "${{ inputs.startup-method }}" "${{ inputs.error-flag }}" "${{ steps.download.outputs.tool4d }}" '${{ inputs.user-param }}' "${{ github.workspace }}"