Skip to content

Commit

Permalink
fix: Updating workflow definition ( Fixes #190 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed Sep 15, 2024
1 parent 547f3a0 commit 17e61c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions PSDevOps.GitHubWorkflow.psdevops.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#requires -Module PSDevOps

Push-Location $PSScriptRoot

New-GitHubWorkflow -Name "Analyze, Test, Tag, and Publish" -On Push, PullRequest, Demand -Job PowerShellStaticAnalysis, TestPowerShellOnLinux, TagReleaseAndPublish, BuildPSDevOps -Environment @{
SYSTEM_ACCESSTOKEN = '${{ secrets.AZUREDEVOPSPAT }}'
NoCoverage = $true
} -OutputPath .\.github\workflows\TestAndPublish.yml

Import-BuildStep -ModuleName GitPub
New-GitHubWorkflow -On Issue, Demand -Job RunGitPub -Name OnIssueChanged |
Set-Content (Join-Path $PSScriptRoot .github\workflows\OnIssue.yml) -Encoding UTF8 -PassThru

} -OutputPath .\.github\workflows\TestAndPublish.yml

Pop-Location

0 comments on commit 17e61c0

Please sign in to comment.