Skip to content

Commit

Permalink
tools added pwsh script to get all GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Jul 5, 2024
1 parent 8326007 commit d8546d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/Get-GitHubActions.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env pwsh

Set-StrictMode -Version 3.0

Get-Content -Path (Resolve-Path -Path $PSScriptRoot\..\.github\workflows\*.yml)
| Select-String -Pattern '(?:uses: +)(?<action>.*)$' -NoEmphasis
| ForEach-Object { $_.Matches[0].Groups['action'].Value }
| Sort-Object -Unique

0 comments on commit d8546d4

Please sign in to comment.