Skip to content

Commit 2196994

Browse files
committedMar 20, 2024·
feat: change failure messaging to debug logging
1 parent a7558eb commit 2196994

File tree

2 files changed

+165
-164
lines changed

2 files changed

+165
-164
lines changed
 

‎dist/index.mjs

+163-162
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function isTagRef(ref: string): boolean {
1212
}
1313

1414
export function getBranchName(ref: string): string | undefined {
15-
let branchName;
15+
let branchName: string | undefined = undefined;
1616
if (!isTagRef(ref)) {
1717
/**
1818
* The listRepoWorkflows request only accepts a branch name and not a ref (for some reason).
@@ -25,7 +25,7 @@ export function getBranchName(ref: string): string | undefined {
2525

2626
core.debug(`getWorkflowRunIds: Filtered branch name: ${ref}`);
2727
} else {
28-
core.warning(
28+
core.debug(
2929
`failed to get branch for ref: ${ref}, please raise an issue with this git ref.`,
3030
);
3131
}

0 commit comments

Comments
 (0)
Please sign in to comment.