From d8546d44277e519fbd9d0c787d1a439d70ab1f5b Mon Sep 17 00:00:00 2001 From: silverqx Date: Fri, 5 Jul 2024 20:28:01 +0200 Subject: [PATCH] tools added pwsh script to get all GitHub actions --- tools/Get-GitHubActions.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/Get-GitHubActions.ps1 diff --git a/tools/Get-GitHubActions.ps1 b/tools/Get-GitHubActions.ps1 new file mode 100644 index 000000000..93751b9f4 --- /dev/null +++ b/tools/Get-GitHubActions.ps1 @@ -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: +)(?.*)$' -NoEmphasis + | ForEach-Object { $_.Matches[0].Groups['action'].Value } + | Sort-Object -Unique