Skip to content

Commit c807200

Browse files
committed
Add GH action to analyze itself
1 parent 403eaa9 commit c807200

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/main.workflow

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
workflow "PSScriptAnalyzer" {
2+
resolves = ["analyze"]
3+
on = "push"
4+
}
5+
6+
action "analyze" {
7+
uses = "./analyze"
8+
secrets = ["GITHUB_TOKEN"]
9+
}

analyze/psakeFile.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingCmdletAliases', '')]
2+
param()
3+
14
task default -depends Build
25

36
task Init {

0 commit comments

Comments
 (0)