-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathaction.yaml
74 lines (74 loc) · 2.27 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
63
64
65
66
67
68
69
70
71
72
73
74
name: Create App
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 }}
project:
description: Project name if the repository is setup for multiple projects
required: false
default: '.'
type:
description: Type of app to add (PTE, AppSource App, Test App)
required: true
name:
description: App Name
required: true
publisher:
description: Publisher
required: true
idrange:
description: ID range
required: true
sampleCode:
description: Include Sample Code?
required: false
default: 'false'
sampleSuite:
description: Include Sample BCPT Suite?
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 }}
_project: ${{ inputs.project }}
_type: ${{ inputs.type }}
_name: ${{ inputs.name }}
_publisher: ${{ inputs.publisher }}
_idrange: ${{ inputs.idrange }}
_sampleCode: ${{ inputs.sampleCode }}
_sampleSuite: ${{ inputs.sampleSuite }}
_updateBranch: ${{ inputs.updateBranch }}
_directCommit: ${{ inputs.directCommit }}
run: |
${{ github.action_path }}/../Invoke-AlGoAction.ps1 -ActionName "CreateApp" -Action {
${{ github.action_path }}/CreateApp.ps1 -actor $ENV:_actor -token $ENV:_token -project $ENV:_project -type $ENV:_type -name $ENV:_name -publisher $ENV:_publisher -idrange $ENV:_idrange -sampleCode ($ENV:_sampleCode -eq 'true') -sampleSuite ($ENV:_sampleSuite -eq 'true') -updateBranch $ENV:_updateBranch -directCommit ($ENV:_directCommit -eq 'true')
}
branding:
icon: terminal
color: blue