8000 Fix bundle version · github/codeql-action@1c2f282 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c2f282

Browse files
committed
Fix bundle version
It's the whole tag, we don't want to remove the `codeql-bundle-` prefix.
1 parent 9a866ed commit 1c2f282

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/actions/update-bundle/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ interface Defaults {
1313
priorCliVersion: string;
1414
}
1515

16-
const CODEQL_BUNDLE_PREFIX = 'codeql-bundle-';
17-
1816
function getCodeQLCliVersionForRelease(release): string {
1917
// We do not currently tag CodeQL bundles based on the CLI version they contain.
2018
// Instead, we use a marker file `cli-version-<version>.txt` to record the CLI version.
@@ -37,7 +35,7 @@ function getCodeQLCliVersionForRelease(release): string {
3735

3836
async function getBundleInfoFromRelease(release): Promise<BundleInfo> {
3937
return {
40-
bundleVersion: release.tag_name.substring(CODEQL_BUNDLE_PREFIX.length),
38+
bundleVersion: release.tag_name,
4139
cliVersion: getCodeQLCliVersionForRelease(release)
4240
};
4341
}

0 commit comments

Comments
 (0)
0