mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-09-03 05:40:44 +02:00
more explicit print
This commit is contained in:
@@ -39,6 +39,9 @@ jobs:
|
||||
|
||||
if (action === 'labeled' || action === 'unlabeled') {
|
||||
const changedLabel = context.payload.label?.name;
|
||||
core.info(
|
||||
`Changed Label: ${changedLabel}`
|
||||
);
|
||||
|
||||
const relevantLabels = [
|
||||
'Feature',
|
||||
@@ -46,26 +49,17 @@ jobs:
|
||||
'Infrastructure',
|
||||
'Breaking API'
|
||||
];
|
||||
if (!relevantLabels.includes(changedLabel)) {
|
||||
requireValidation = false;
|
||||
}
|
||||
|
||||
const fileLabels = [
|
||||
'File Major',
|
||||
'File Minor',
|
||||
];
|
||||
|
||||
if (!relevantLabels.includes(changedLabel)) {
|
||||
core.info(
|
||||
`Ignoring unrelated label change: ${changedLabel}`
|
||||
);
|
||||
requireValidation = false;
|
||||
}
|
||||
|
||||
if (fileLabels.includes(changedLabel)) {
|
||||
core.info(
|
||||
`File version label change detected: ${changedLabel}`
|
||||
);
|
||||
fileLabelChange = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -75,22 +69,19 @@ jobs:
|
||||
'require_validation',
|
||||
requireValidation.toString()
|
||||
);
|
||||
|
||||
core.setOutput(
|
||||
'file_label_change',
|
||||
fileLabelChange.toString()
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* Log what will run.
|
||||
*/
|
||||
if (requireValidation) {
|
||||
core.info('PR type validation required.');
|
||||
} else {
|
||||
core.info('PR type validation not required.');
|
||||
core.info('PR type validation not required: Unrelated label.');
|
||||
}
|
||||
|
||||
if (fileLabelChange) {
|
||||
core.info('File version label change detected.');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user