Skip to content

Commit

Permalink
allow github-actions[bot]
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
tunisiano187 committed May 17, 2024
1 parent d9c64c9 commit 0c2d8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Block-package.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Block-Package {
[string]$actor
)
Write-Output $actor
if($actor -ne 'tunisiano187' -or ($title.ToLower() -notmatch 'exclude' -and $title.ToLower() -notmatch 'block')) {
if(($actor -ne 'tunisiano187' -and $actor -ne 'github-actions[bot]') -or ($title.ToLower() -notmatch 'exclude' -and $title.ToLower() -notmatch 'block')) {
throw "User $actor cannot run this"
}
$ErrorActionPreference = 'Stop';
Expand Down

0 comments on commit 0c2d8c1

Please sign in to comment.