forked from microsoft/AL-Go-Actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
50 lines (50 loc) · 1.57 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
name: Run Pipeline
author: Microsoft Corporation
inputs:
shell:
description: Shell in which you want to run the action (powershell or pwsh)
required: false
default: powershell
token:
description: The GitHub token running the action
required: false
default: ${{ github.token }}
artifact:
description: ArtifactUrl to use for the build
required: false
default: ''
project:
description: Project folder
required: false
default: '.'
buildMode:
description: Specifies a mode to use for the build steps
required: false
default: 'Default'
installAppsJson:
description: A JSON-formatted list of apps to install
required: false
default: '[]'
installTestAppsJson:
description: A JSON-formatted list of test apps to install
required: false
default: '[]'
runs:
using: composite
steps:
- name: run
shell: ${{ inputs.shell }}
env:
_token: ${{ inputs.token }}
_artifact: ${{ inputs.artifact }}
_project: ${{ inputs.project }}
_buildMode: ${{ inputs.buildMode }}
_installAppsJson: ${{ inputs.installAppsJson }}
_installTestAppsJson: ${{ inputs.installTestAppsJson }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "RunPipeline" -Action {
${{ github.action_path }}/RunPipeline.ps1 -token $ENV:_token -artifact $ENV:_artifact -project $ENV:_project -buildMode $ENV:_buildMode -installAppsJson $ENV:_installAppsJson -installTestAppsJson $ENV:_installTestAppsJson
}
branding:
icon: terminal
color: blue