Rename to kebab-case for root action inputs and outputs (#668)

* Rename to kebab-case for root action inputs and outputs

* Throw on renamed inputs
This commit is contained in:
Bjorn Lu
2026-06-30 08:24:21 +00:00
committed by GitHub
parent 164652bdd6
commit 0eae789230
4 changed files with 44 additions and 17 deletions
+10
View File
@@ -135,6 +135,16 @@ export function getRequiredInput(name: string) {
return core.getInput(name, { required: true });
}
export function throwOnRenamedInputs(renames: Record<string, string>) {
for (const [oldInput, newInput] of Object.entries(renames)) {
if (core.getInput(oldInput)) {
throw new Error(
`The input "${oldInput}" has been renamed to "${newInput}". Please update your workflow file.`,
);
}
}
}
function resolveChangesetsCli(cwd: string) {
return require.resolve("@changesets/cli/bin.js", {
paths: [cwd],