forked from StartAutomating/GitPub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGitPub.GitHubAction.PSDevOps.ps1
More file actions
22 lines (22 loc) · 1.01 KB
/
GitPub.GitHubAction.PSDevOps.ps1
File metadata and controls
22 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#requires -Module PSDevOps
#requires -Module GitPub
Import-BuildStep -ModuleName GitPub
New-GitHubAction -Name "usegitpub" -Description 'Easily Automate Publishing from GitHub' -Action GitPubAction -Icon rss -ActionOutput ([Ordered]@{
GitPubScriptRuntime = [Ordered]@{
description = "The time it took the .GitPubScript parameter to run"
value = '${{steps.GitPubAction.outputs.GitPubScriptRuntime}}'
}
GitPubPS1Runtime = [Ordered]@{
description = "The time it took all .GitPub.ps1 files to run"
value = '${{steps.GitPubAction.outputs.GitPubPS1Runtime}}'
}
GitPubPS1Files = [Ordered]@{
description = "The .GitPub.ps1 files that were run (separated by semicolons)"
value = '${{steps.GitPubAction.outputs.GitPubPS1Files}}'
}
GitPubPS1Count = [Ordered]@{
description = "The number of .GitPub.ps1 files that were run"
value = '${{steps.GitPubAction.outputs.GitPubPS1Count}}'
}
}) |
Set-Content .\action.yml -Encoding UTF8 -PassThru