-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathaction.yaml
54 lines (53 loc) · 2.25 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
53
54
name: Download Project Dependencies
author: Microsoft Corporation
description: Downloads the dependencies of an AL-Go project
inputs:
shell:
description: Shell in which you want to run the action (powershell or pwsh)
required: false
default: powershell
project:
description: Project for which to download dependencies
required: true
buildMode:
description: Build mode used when building the artifacts
required: true
projectsDependenciesJson:
description: A JSON object that matches eash project with its dependency projects
required: true
baselineWorkflowRunId:
description: The ID of the workflow run that was used as baseline for the current build
required: false
default: '0'
outputs:
DownloadedApps:
description: A JSON-formatted array of paths to .app files of the apps that were downloaded
value: ${{ steps.DownloadDependencies.outputs.DownloadedApps }}
DownloadedTestApps:
description: A JSON-formatted array of paths to .app files of the test apps that were downloaded
value: ${{ steps.DownloadDependencies.outputs.DownloadedTestApps }}
runs:
using: composite
steps:
- name: Download artifacts from current build
uses: actions/download-artifact@v4
with:
path: ${{ github.workspace }}/.dependencies
- name: Download project dependencies
shell: ${{ inputs.shell }}
id: DownloadDependencies
env:
_project: ${{ inputs.project }}
_buildMode: ${{ inputs.buildMode }}
_projectsDependenciesJson: ${{ inputs.projectsDependenciesJson }}
_baseFolder: ${{ github.workspace }}
_destinationPath: ${{ github.workspace }}/.dependencies
_gitHubToken: ${{ github.token }}
_baselineWorkflowRunId: ${{ inputs.baselineWorkflowRunId }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "DownloadProjectDependencies" -Action {
${{ github.action_path }}/DownloadProjectDependencies.Action.ps1 -project $ENV:_project -buildMode $ENV:_buildMode -projectsDependenciesJson $ENV:_projectsDependenciesJson -baselineWorkflowRunId $ENV:_baselineWorkflowRunId -baseFolder $ENV:_baseFolder -destinationPath $ENV:_destinationPath -token $ENV:_gitHubToken
}
branding:
icon: terminal
color: blue