Skip to content

Commit 6e9f99e

Browse files
authored
Merge pull request #255905 from Homebrew/check-labels-nodejs-earlier
workflows: check nodejs before early exit
2 parents a671b8b + e80a4c6 commit 6e9f99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/scripts/check-labels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = async ({github, context, core}, formulae_detect, dependent_test
1919
console.log('No CI-syntax-only label found. Running tests job.')
2020
}
2121

22+
core.setOutput('nodejs', !syntax_only && label_names.includes('nodejs'))
23+
2224
core.setOutput('syntax-only', syntax_only)
2325
if (syntax_only) {
2426
return
@@ -146,6 +148,4 @@ module.exports = async ({github, context, core}, formulae_detect, dependent_test
146148

147149
core.setOutput('test-bot-formulae-args', test_bot_formulae_args.join(" "))
148150
core.setOutput('test-bot-dependents-args', test_bot_dependents_args.join(" "))
149-
150-
core.setOutput('nodejs', label_names.includes('nodejs'))
151151
}

0 commit comments

Comments
 (0)