Skip to content

Commit

Permalink
feat: change failure messaging to debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Mar 20, 2024
1 parent a7558eb commit 2196994
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 164 deletions.
325 changes: 163 additions & 162 deletions dist/index.mjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function isTagRef(ref: string): boolean {
}

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

core.debug(`getWorkflowRunIds: Filtered branch name: ${ref}`);
} else {
core.warning(
core.debug(
`failed to get branch for ref: ${ref}, please raise an issue with this git ref.`,
);
}
Expand Down

0 comments on commit 2196994

Please sign in to comment.