Skip to content

Commit

Permalink
Auto fix lint error caused by Update-ModuleManifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tig committed Nov 7, 2023
1 parent a7749c6 commit 61979e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
shell: pwsh
run: |
dotnet tool install --global PowerShell
$content = Get-Content -Path $env:GITHUB_PATH
$HOME + "/.dotnet/tools`r`n" + $content | Set-Content -Path $env:GITHUB_PATH -Encoding utf8
"$HOME/.dotnet/tools`r`n$(Get-Content -Path $env:GITHUB_PATH)" | Set-Content -Path $env:GITHUB_PATH -Encoding utf8
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ Update-ModuleManifest -RequiredModules @(
) -Path $PsdPath -ErrorAction Stop

if (-not $SkipScriptAnalyzer) {
Write-Host "Invoke-ScriptAnalyzer with -Fix for $ModulePath/$ModuleName.psd1"
Invoke-ScriptAnalyzer "$ModulePath/$ModuleName.psd1" -Recurse -Settings PSGallery -Fix -ErrorAction Stop
Write-Host "Invoke-ScriptAnalyzer with -Fixfor $PsdPath"
Invoke-ScriptAnalyzer $PsdPath -Recurse -Settings PSGallery -Fix -ErrorAction Stop
}

$OldModule = Get-Module $ModuleName -ErrorAction SilentlyContinue
Expand Down

0 comments on commit 61979e5

Please sign in to comment.