Fix bundle version
It's the whole tag, we don't want to remove the `codeql-bundle-` prefix.
This commit is contained in:
parent
9a866ed452
commit
1c2f282107
1 changed files with 1 additions and 3 deletions
4
.github/actions/update-bundle/index.ts
vendored
4
.github/actions/update-bundle/index.ts
vendored
|
|
@ -13,8 +13,6 @@ interface Defaults {
|
||||||
priorCliVersion: string;
|
priorCliVersion: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const CODEQL_BUNDLE_PREFIX = 'codeql-bundle-';
|
|
||||||
|
|
||||||
function getCodeQLCliVersionForRelease(release): string {
|
function getCodeQLCliVersionForRelease(release): string {
|
||||||
// We do not currently tag CodeQL bundles based on the CLI version they contain.
|
// We do not currently tag CodeQL bundles based on the CLI version they contain.
|
||||||
// Instead, we use a marker file `cli-version-<version>.txt` to record the CLI version.
|
// Instead, we use a marker file `cli-version-<version>.txt` to record the CLI version.
|
||||||
|
|
@ -37,7 +35,7 @@ function getCodeQLCliVersionForRelease(release): string {
|
||||||
|
|
||||||
async function getBundleInfoFromRelease(release): Promise<BundleInfo> {
|
async function getBundleInfoFromRelease(release): Promise<BundleInfo> {
|
||||||
return {
|
return {
|
||||||
bundleVersion: release.tag_name.substring(CODEQL_BUNDLE_PREFIX.length),
|
bundleVersion: release.tag_name,
|
||||||
cliVersion: getCodeQLCliVersionForRelease(release)
|
cliVersion: getCodeQLCliVersionForRelease(release)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue