validate-pr-title: fix check if PR_LABELS is set (#4063)

This commit is contained in:
Bart Louwers
2026-01-20 17:47:47 +01:00
committed by GitHub
parent 6a77854632
commit efab287e03

View File

@@ -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);
}