mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Add regression test
This commit is contained in:
@@ -138,7 +138,10 @@ function tryGetBundleVersionFromTagName(
|
||||
return match[1];
|
||||
}
|
||||
|
||||
function tryGetTagNameFromUrl(url: string, logger: Logger): string | undefined {
|
||||
export function tryGetTagNameFromUrl(
|
||||
url: string,
|
||||
logger: Logger,
|
||||
): string | undefined {
|
||||
const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)];
|
||||
if (!matches.length) {
|
||||
logger.debug(`Could not determine tag name for URL ${url}.`);
|
||||
|
||||
Reference in New Issue
Block a user