forked from microsoft/AL-Go-Actions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
62 lines (62 loc) · 2.15 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
55
56
57
58
59
60
61
62
name: Create Development Environment
author: Microsoft Corporation
permissions:
contents: write
pull-requests: write
inputs:
shell:
description: Shell in which you want to run the action (powershell or pwsh)
required: false
default: powershell
actor:
description: The GitHub actor running the action
required: false
default: ${{ github.actor }}
token:
description: The GitHub token running the action
required: false
default: ${{ github.token }}
environmentName:
description: Name of the online environment
required: true
project:
description: Project name if the repository is setup for multiple projects
required: false
default: '.'
adminCenterApiCredentials:
description: Admin center API credentials
required: false
default: ''
reUseExistingEnvironment:
description: Reuse environment if it exists?
required: false
default: 'false'
updateBranch:
description: Set the branch to update
required: false
default: ${{ github.ref_name }}
directCommit:
description: Direct Commit?
required: false
default: 'false'
runs:
using: composite
steps:
- name: run
shell: ${{ inputs.shell }}
env:
_actor: ${{ inputs.actor }}
_token: ${{ inputs.token }}
_environmentName: ${{ inputs.environmentName }}
_project: ${{ inputs.project }}
_adminCenterApiCredentials: ${{ inputs.adminCenterApiCredentials }}
_reUseExistingEnvironment: ${{ inputs.reUseExistingEnvironment }}
_updateBranch: ${{ inputs.updateBranch }}
_directCommit: ${{ inputs.directCommit }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "CreateDevelopmentEnvironment" -Action {
${{ github.action_path }}/CreateDevelopmentEnvironment.ps1 -actor $ENV:_actor -token $ENV:_token -environmentName $ENV:_environmentName -project $ENV:_project -adminCenterApiCredentials $ENV:_adminCenterApiCredentials -reUseExistingEnvironment ($ENV:_reUseExistingEnvironment -eq 'true') -updateBranch $ENV:_updateBranch -directCommit ($ENV:_directCommit -eq 'true')
}
branding:
icon: terminal
color: blue