Skip to content

Commit 8236338

Browse files
koki-developclaude
andauthored
fix: Allow boolean and number values in reusable workflow inputs (#117)
Co-authored-by: Claude <[email protected]>
1 parent b2204f4 commit 8236338

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/package/job.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,17 @@ describe("Job", () => {
225225
new Job("simple-job", { uses: "./workflow.yml" }),
226226
{ uses: "./workflow.yml" },
227227
],
228+
[
229+
new Job("with-inputs", {
230+
uses: "./workflow.yml",
231+
with: {
232+
foo: "bar",
233+
bar: 1,
234+
baz: true,
235+
},
236+
}),
237+
{ uses: "./workflow.yml", with: { foo: "bar", bar: 1, baz: true } },
238+
],
228239
[
229240
new Job("with-permissions", {
230241
uses: "./workflow.yml",

lib/package/job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export type NormalJobConfig = JobConfigBase & {
107107

108108
export type ReusableWorkflowCallJobConfig = JobConfigBase & {
109109
uses: string;
110-
with?: Record<string, string>;
110+
with?: Record<string, string | boolean | number>;
111111
secrets?: "inherit" | Record<string, string>;
112112
};
113113

0 commit comments

Comments
 (0)