Skip to content

Commit e2c4ffc

Browse files
committed
Use core.getBooleanInput
1 parent 90e579c commit e2c4ffc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export async function getInputs(): Promise<Inputs> {
1414
return {
1515
githubToken: core.getInput('github-token'),
1616
yamlFile: path.join(core.getInput('yaml-file') || '.github/labels.yml'),
17-
skipDelete: /true/i.test(core.getInput('skip-delete')),
18-
dryRun: /true/i.test(core.getInput('dry-run')),
17+
skipDelete: core.getBooleanInput('skip-delete'),
18+
dryRun: core.getBooleanInput('dry-run'),
1919
exclude: await getInputList('exclude')
2020
};
2121
}

0 commit comments

Comments
 (0)