Skip to content

Commit

Permalink
Escape inline pwsh variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Mar 4, 2024
1 parent f3bd615 commit 4c2d8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:

- name: Validate package names
if: ${{ env.VERSION_PROPERTY != '' }}
run: powershell -version 5.1 -command "Get-ChildItem -Path '**/*.nupkg' | ForEach-Object { if ($_.Name -notmatch '${{ env.VERSION_PROPERTY }}') { throw 'Nupkg name is missing trailing VERSION_PROPERTY' + $_.Name } }" -ErrorAction Stop
run: powershell -version 5.1 -command "Get-ChildItem -Path '**/*.nupkg' | ForEach-Object { if (`$_.Name -notmatch '${{ env.VERSION_PROPERTY }}') { throw 'Nupkg name is missing trailing VERSION_PROPERTY' + `$_.Name } }" -ErrorAction Stop

# Push Pull Request Packages to our DevOps Artifacts Feed (see nuget.config)
- name: Push PR packages (if not fork)
Expand Down

0 comments on commit 4c2d8bb

Please sign in to comment.