-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
46 lines (46 loc) · 1.58 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
name: PowerShell script
author: Freddy Kristiansen
inputs:
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 }}
parentTelemetryScopeJson:
description: Specifies the parent telemetry scope for the telemetry signal
required: false
default: '7b7d'
projects:
description: Projects to deploy
required: false
default: ''
environmentName:
description: Name of environment to deploy to
required: true
artifacts:
description: Artifacts to deploy
required: true
type:
description: Type of deployment (CD or Publish)
required: false
default: 'CD'
runs:
using: composite
steps:
- name: run
shell: PowerShell
env:
_actor: ${{ inputs.actor }}
_token: ${{ inputs.token }}
_parentTelemetryScopeJson: ${{ inputs.parentTelemetryScopeJson }}
_projects: ${{ inputs.projects }}
_environmentName: ${{ inputs.environmentName }}
_artifacts: ${{ inputs.artifacts }}
_type: ${{ inputs.type }}
run: try { ${{ github.action_path }}/Deploy.ps1 -actor $ENV:_actor -token $ENV:_token -parentTelemetryScopeJson $ENV:_parentTelemetryScopeJson -projects $ENV:_projects -environmentName $ENV:_environmentName -artifacts $ENV:_artifacts -type $ENV:_type } catch { Write-Host "::Error::Unexpected error when running action ($($_.Exception.Message.Replace("`r",'').Replace("`n",' ')))"; exit 1 }
branding:
icon: terminal
color: blue