resolve issues with variable name

This commit is contained in:
David Refoua 2022-10-17 22:16:26 +03:30
parent 4264158ff2
commit cc9699c134

View File

@ -39,7 +39,7 @@ jobs:
foreach ($s in $newVersion) { foreach ($s in $newVersion) {
$oldVersion = ($currentVersion | Where-Object {$_.name -eq $s.name}).version $oldVersion = ($currentVersion | Where-Object {$_.name -eq $s.name}).version
if ($s.version -ne $oldVersion) { if ($s.version -ne $oldVersion) {
$listUpdated += "$($s.name), " $listUpdated += "$($s.name v$s.version), "
$updateMessage += "| **$($s.name)** | $oldVersion | **$($s.version)** |`n" $updateMessage += "| **$($s.name)** | $oldVersion | **$($s.version)** |`n"
} }
} }
@ -54,7 +54,7 @@ jobs:
title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies' title: 'Updates to `${{ env.COUNT_UPDATED }}` vendored dependencies'
body: | body: |
### Automatically updated `${{ env.COUNT_UPDATED }}` dependencies: ### Automatically updated `${{ env.COUNT_UPDATED }}` dependencies:
${{ steps.make_changes.outputs.updateMessage }} ${{ steps.make-changes.outputs.updateMessage }}
--- ---
Please verify and then **Merge** the pull request to update. Please verify and then **Merge** the pull request to update.
commit-message: 'Update vendored dependencies (${{ env.LIST_UPDATED }})' commit-message: 'Update vendored dependencies (${{ env.LIST_UPDATED }})'