From da7a1473a2503e52f4082efb4bc0c9331efe49e0 Mon Sep 17 00:00:00 2001 From: Szabolcs Deme Date: Fri, 5 Jul 2024 03:54:44 +0200 Subject: [PATCH] Fixing yml warnings --- .github/actions/static-code-analysis/action.yml | 6 +++--- .github/workflows/static-code-analysis-this-repo.yml | 4 ++-- .github/workflows/static-code-analysis.yml | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/static-code-analysis/action.yml b/.github/actions/static-code-analysis/action.yml index 8f79f69..f9c59d8 100644 --- a/.github/actions/static-code-analysis/action.yml +++ b/.github/actions/static-code-analysis/action.yml @@ -4,19 +4,19 @@ description: Runs static code analysis on PowerShell scripts and cmdlets. inputs: run-windows-powershell: required: false - default: "true" + default: 'true' description: > If set to "true", static code analysis is ran through Windows PowerShell (version 5.x), but only on Windows. run-powershell-core: required: false - default: "true" + default: 'true' description: > If set to "true", static code analysis is ran through PowerShell Core (version 7+). When not "true", consider removing Linux-based machine-types from the strategy matrix as they won't run analysis through Windows PowerShell either. runs: - using: "composite" + using: composite steps: - name: Windows PowerShell (5.x) Static Code Analysis (Windows-only) if: runner.os == 'Windows' && inputs.run-windows-powershell == 'true' diff --git a/.github/workflows/static-code-analysis-this-repo.yml b/.github/workflows/static-code-analysis-this-repo.yml index 2188010..24b523b 100644 --- a/.github/workflows/static-code-analysis-this-repo.yml +++ b/.github/workflows/static-code-analysis-this-repo.yml @@ -14,5 +14,5 @@ jobs: with: # Making sure that analysis runs through both PowerShell editions regardless of the default configuration of the # workflow and the underlying action to ensure backwards-compatibility. - run-windows-powershell: "true" - run-powershell-core: "true" + run-windows-powershell: 'true' + run-powershell-core: 'true' diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index d4b0d04..84e0b64 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -19,13 +19,13 @@ on: run-windows-powershell: required: false type: string - default: "true" + default: 'true' description: > If set to "true", static code analysis is ran through Windows PowerShell (version 5.x), but only on Windows. run-powershell-core: required: false type: string - default: "true" + default: 'true' description: > If set to "true", static code analysis is ran through PowerShell Core (version 7+). When not "true", consider removing Linux-based machine-types from the strategy matrix as they won't run analysis through Windows @@ -48,7 +48,7 @@ on: description: If set to "true", this will cancel the current workflow run with all jobs if this workflow fails. required: false type: string - default: "true" + default: 'true' jobs: powershell-static-code-analysis: