Merge branch 'main' into henrymercer/remove-unused-env-var
This commit is contained in:
commit
ae005db7f8
8 changed files with 138 additions and 12 deletions
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
|
|
@ -487,7 +487,7 @@ async function isAnalyzingDefaultBranch() {
|
|||
const event = getWorkflowEvent();
|
||||
let defaultBranch = event?.repository?.default_branch;
|
||||
if (getWorkflowEventName() === "schedule") {
|
||||
defaultBranch = removeRefsHeadsPrefix((0, util_1.getRequiredEnvParam)("GITHUB_REF"));
|
||||
defaultBranch = removeRefsHeadsPrefix(getRefFromEnv());
|
||||
}
|
||||
return currentRef === defaultBranch;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue