From 90cd1130ac3ffffe2a5a2a384cd2bcd6c9564ffc Mon Sep 17 00:00:00 2001 From: David Refoua Date: Sun, 23 Oct 2022 18:09:35 +0330 Subject: [PATCH] add link to repo url --- .github/workflows/vendor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/vendor.yml b/.github/workflows/vendor.yml index cd4c71b..d0917ee 100644 --- a/.github/workflows/vendor.yml +++ b/.github/workflows/vendor.yml @@ -40,8 +40,9 @@ jobs: foreach ($s in $newVersion) { $oldVersion = ($currentVersion | Where-Object {$_.name -eq $s.name}).version if ($s.version -ne $oldVersion) { + $repoUrl = ($repoUrl = $s.Url.Replace("/archive/", "/releases/")).Substring(0, $repoUrl.IndexOf("/releases/")) + "/releases" $listUpdated += "$($s.name) v$($s.version), " - $updateMessage += "| **$($s.name)** | $oldVersion | **$($s.version)** |`n" + $updateMessage += "| **[$($s.name)]($repoUrl)** | $oldVersion | **$($s.version)** |`n" } } if ($count -eq 0) { return }