Repository: ArmaanT/cdkactions (language: python)

Issue:
The "with" property in a job's step doesn't allow numbers/booleans
This appears to be a type issue where the "with" field only accepts a StringMap when numbers/booleans are also acceptable.

Input:
![image](https://user-images.githubusercontent.com/5173987/104225438-01b65780-540c-11eb-9738-d6a9ef486f4d.png)

Result:
![image](https://user-images.githubusercontent.com/5173987/104225522-1db9f900-540c-11eb-8d4f-542002d71aec.png)


Additional use case for boolean:
![image](https://user-images.githubusercontent.com/5173987/104229260-a4bda000-5411-11eb-9583-2bc6fbde456c.png)



Discussion / hints:

Fix patch:
diff --git a/packages/cdkactions/src/job.ts b/packages/cdkactions/src/job.ts
index a6e24f5..6d68c1c 100644
--- a/packages/cdkactions/src/job.ts
+++ b/packages/cdkactions/src/job.ts
@@ -86,7 +86,7 @@ export interface StepsProps extends RunProps {
   /**
    * A map of parameters for an external action.
    */
-  readonly with?: StringMap;
+  readonly with?: { [key: string]: string | number | boolean };
 
   /**
    * Additional environment variables.


Test patch:
diff --git a/packages/cdkactions/test/__snapshots__/job.test.ts.snap b/packages/cdkactions/test/__snapshots__/job.test.ts.snap
index bac6eba..68bbb5c 100644
--- a/packages/cdkactions/test/__snapshots__/job.test.ts.snap
+++ b/packages/cdkactions/test/__snapshots__/job.test.ts.snap
@@ -11,6 +11,15 @@ Object {
       "timeout-minutes": 5,
       "working-directory": "~/",
     },
+    Object {
+      "name": "External action",
+      "uses": "actions/checkout@v2",
+      "with": Object {
+        "booleanValue": false,
+        "numberValue": 10,
+        "stringValue": "string",
+      },
+    },
   ],
   "strategy": Object {
     "fail-fast": true,
diff --git a/packages/cdkactions/test/job.test.ts b/packages/cdkactions/test/job.test.ts
index ad09355..810000c 100644
--- a/packages/cdkactions/test/job.test.ts
+++ b/packages/cdkactions/test/job.test.ts
@@ -14,6 +14,15 @@ test('toGHAction', () => {
       continueOnError: false,
       timeoutMinutes: 5,
       workingDirectory: '~/',
+    },
+    {
+      name: 'External action',
+      uses: 'actions/checkout@v2',
+      with: {
+        stringValue: 'string',
+        numberValue: 10,
+        booleanValue: false,
+      },
     }],
   });
   expect(job.toGHAction()).toMatchSnapshot();