Skip to content

Commit 4c2d8bb

Browse files
committed
Escape inline pwsh variable
1 parent f3bd615 commit 4c2d8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160

161161
- name: Validate package names
162162
if: ${{ env.VERSION_PROPERTY != '' }}
163-
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
163+
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
164164

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

0 commit comments

Comments
 (0)