From 1c2f282107790c08e265e1e92475e3df734296cb Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Tue, 18 Apr 2023 18:59:09 +0100 Subject: [PATCH] Fix bundle version It's the whole tag, we don't want to remove the `codeql-bundle-` prefix. --- .github/actions/update-bundle/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/update-bundle/index.ts b/.github/actions/update-bundle/index.ts index a8bd13e27a..354e70def2 100644 --- a/.github/actions/update-bundle/index.ts +++ b/.github/actions/update-bundle/index.ts @@ -13,8 +13,6 @@ interface Defaults { priorCliVersion: string; } -const CODEQL_BUNDLE_PREFIX = 'codeql-bundle-'; - function getCodeQLCliVersionForRelease(release): string { // We do not currently tag CodeQL bundles based on the CLI version they contain. // Instead, we use a marker file `cli-version-.txt` to record the CLI version. @@ -37,7 +35,7 @@ function getCodeQLCliVersionForRelease(release): string { async function getBundleInfoFromRelease(release): Promise { return { - bundleVersion: release.tag_name.substring(CODEQL_BUNDLE_PREFIX.length), + bundleVersion: release.tag_name, cliVersion: getCodeQLCliVersionForRelease(release) }; }