forked from StartAutomating/PSDevOps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPSDevOps.GitHubWorkflow.psdevops.ps1
More file actions
20 lines (14 loc) · 980 Bytes
/
PSDevOps.GitHubWorkflow.psdevops.ps1
File metadata and controls
20 lines (14 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#requires -Module PSDevOps
Push-Location $PSScriptRoot
New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, HelpOut, RunEZOut -Environment @{
SYSTEM_ACCESSTOKEN = '${{ secrets.AZUREDEVOPSPAT }}'
NoCoverage = $true
}|
Set-Content .\.github\workflows\TestAndPublish.yml -Encoding UTF8 -PassThru
New-GitHubWorkflow -Name "Trace On Issue Opened Or Edited" -On IssueOpenedOrEdited -Job TraceGitHubEvent |
Set-Content .\.github\workflows\TraceIssueOpenedOrEdited.yml -Encoding UTF8 -PassThru
New-GitHubWorkflow -Name "Trace On Issue Closed" -On IssueClosed -Job TraceGitHubEvent |
Set-Content .\.github\workflows\TraceIssueClosed.yml -Encoding UTF8 -PassThru
New-GitHubWorkflow -Name "Trace On Issue Comment" -On IssueComment -Job TraceGitHubEvent |
Set-Content .\.github\workflows\TraceIssueComment.yml -Encoding UTF8 -PassThru
Pop-Location