validate-pr-title: fix check if PR_LABELS is set (#4063)
This commit is contained in:
4
.github/scripts/validate-pr-title.ts
vendored
4
.github/scripts/validate-pr-title.ts
vendored
@@ -36,12 +36,12 @@ export function validateTitle({
|
||||
}
|
||||
|
||||
if (import.meta.main) {
|
||||
if (!process.env.PR_TITLE) {
|
||||
if (process.env.PR_TITLE === undefined) {
|
||||
console.log('::error::PR_TITLE environment variable is not set');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (!process.env.PR_LABELS) {
|
||||
if (process.env.PR_LABELS === undefined) {
|
||||
console.log('::error::PR_LABELS environment variable is not set');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user