forked from microsoft/AL-Go-Actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
43 lines (43 loc) · 1.88 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
name: Determine Projects to Build
author: Microsoft Corporation
description: Determines the projects to build based on the changes
inputs:
shell:
description: Shell in which you want to run the action (powershell or pwsh)
required: false
default: powershell
maxBuildDepth:
description: Specifies the maximum build depth suppored by the workflow running the action
required: false
default: '0'
outputs:
ProjectsJson:
description: An array of AL-Go projects in compressed JSON format
value: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
ProjectDependenciesJson:
description: An object that holds the project dependencies in compressed JSON format
value: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
BuildOrderJson:
description: An array of objects that determine that build order, including build dimensions
value: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
BuildAllProjects:
description: A flag that indicates whether to build all projects or only the modified ones
value: ${{ steps.determineProjectsToBuild.outputs.BuildAllProjects }}
BaselineWorkflowRunId:
description: The ID of the workflow run from where to fetch artifacts in case when not all projects are built
value: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }}
runs:
using: composite
steps:
- name: Determine Projects to Build
shell: ${{ inputs.shell }}
id: determineProjectsToBuild
env:
_maxBuildDepth: ${{ inputs.maxBuildDepth }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "DetermineProjectsToBuild" -Action {
${{ github.action_path }}/DetermineProjectsToBuild.Action.ps1 -baseFolder ${{ github.workspace }} -maxBuildDepth $env:_maxBuildDepth -token ${{ github.token }}
}
branding:
icon: terminal
color: blue