Merge pull request #1678 from github/henrymercer/default-setup-safeguarding
Flag up functionality that may not exist in default setup workflows
This commit is contained in:
commit
89c4c9e65c
8 changed files with 138 additions and 12 deletions
|
|
@ -648,7 +648,7 @@ export async function isAnalyzingDefaultBranch(): Promise<boolean> {
|
|||
let defaultBranch = event?.repository?.default_branch;
|
||||
|
||||
if (process.env.GITHUB_EVENT_NAME === "schedule") {
|
||||
defaultBranch = removeRefsHeadsPrefix(getRequiredEnvParam("GITHUB_REF"));
|
||||
defaultBranch = removeRefsHeadsPrefix(getRefFromEnv());
|
||||
}
|
||||
|
||||
return currentRef === defaultBranch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue