Skip to content

Commit

Permalink
Fixing yml warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DemeSzabolcs committed Jul 5, 2024
1 parent f299b97 commit da7a147
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/actions/static-code-analysis/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-code-analysis-this-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
6 changes: 3 additions & 3 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit da7a147

Please sign in to comment.