fix: correct reading of sync-labels input

This commit is contained in:
MaksimZhukov
2023-05-24 12:21:33 +02:00
parent e1fcf6fe5b
commit 26342ba349
3 changed files with 14 additions and 4 deletions

2
dist/index.js vendored
View File

@@ -288,7 +288,7 @@ function run() {
try {
const token = core.getInput('repo-token');
const configPath = core.getInput('configuration-path', { required: true });
const syncLabels = !!core.getInput('sync-labels', { required: false });
const syncLabels = core.getBooleanInput('sync-labels');
const prNumber = getPrNumber();
if (!prNumber) {
core.info('Could not get pull request number from context, exiting');