diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ec2ca0a..68c2b42 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -5,6 +5,7 @@ on: branches: [main] pull_request: branches: [main] + workflow_dispatch: permissions: contents: read @@ -18,6 +19,7 @@ jobs: - uses: actions/checkout@v6 - name: Cache PowerShell modules + id: cache-lint-modules uses: actions/cache@v5 with: path: ~/.local/share/powershell/Modules @@ -26,6 +28,7 @@ jobs: ${{ runner.os }}-psmodules-lint- - name: Install PSScriptAnalyzer + if: steps.cache-lint-modules.outputs.cache-hit != 'true' shell: pwsh run: | Set-PSRepository -Name PSGallery -InstallationPolicy Trusted