From ee8cbb67bd17344d7dede31b519621a6f837fb28 Mon Sep 17 00:00:00 2001 From: Hector Alfaro Date: Wed, 4 May 2022 13:19:56 -0400 Subject: [PATCH] use unique var names --- .github/actions-scripts/content-changes-table-comment.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions-scripts/content-changes-table-comment.js b/.github/actions-scripts/content-changes-table-comment.js index ad91d52bbd..380a33810d 100755 --- a/.github/actions-scripts/content-changes-table-comment.js +++ b/.github/actions-scripts/content-changes-table-comment.js @@ -82,9 +82,9 @@ for (const file of articleFiles) { previewCell += `${version}@ ` prodCell += `${version}@ ` - currentApplicableVersions.forEach((version) => { - previewCell += `[${version.split('@')[1]}](${APP_URL}/${version}/${fileUrl}) ` - prodCell += `[${version.split('@')[1]}](${PROD_URL}/${version}/${fileUrl}) ` + currentApplicableVersions.forEach((ghesVersion) => { + previewCell += `[${ghesVersion.split('@')[1]}](${APP_URL}/${ghesVersion}/${fileUrl}) ` + prodCell += `[${ghesVersion.split('@')[1]}](${PROD_URL}/${ghesVersion}/${fileUrl}) ` }) previewCell += '
' prodCell += '
'