Skip to content

Commit a3d7d45

Browse files
authored
added --connection-count support to data import (#566)
1 parent 42e540e commit a3d7d45

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

import-data/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ inputs:
3636
description: 'File name for data zip file, or folder with data-schema.xml & data.xml, to be imported.'
3737
required: true
3838

39+
connection-count:
40+
description: 'Number of parallel connections to use during import. Default: 5'
41+
required: false
42+
3943
verbose:
4044
description: 'Output more diagnostic information.'
4145
required: false
42-
46+
4347
runs:
4448
using: 'node16'
4549
main: '../dist/actions/import-data/index.js'

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@actions/core": "^1.10.1",
6565
"@actions/exec": "^1.1.1",
6666
"@actions/io": "^1.1.3",
67-
"@microsoft/powerplatform-cli-wrapper": "^0.1.121",
67+
"@microsoft/powerplatform-cli-wrapper": "^0.1.122",
6868
"date-fns": "^3.6.0",
6969
"fs-extra": "^11.2.0",
7070
"js-yaml": "^4.1",

src/actions/import-data/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { runnerParameters } from '../../lib/runnerParameters';
2323
credentials: getCredentials(),
2424
environmentUrl: getEnvironmentUrl(),
2525
dataFile: parameterMap['data-file'],
26+
connectionCount: parameterMap['connection-count'],
2627
verbose: {
2728
name: "verbose",
2829
required: false,

src/test/importData.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe("import-data tests", () => {
3636
credentials: credentials,
3737
environmentUrl: mockEnvironmentUrl,
3838
dataFile: { name: 'data-file', required: true, defaultValue: undefined },
39+
connectionCount: { name: 'connection-count', required: false, defaultValue: undefined },
3940
verbose: { name: 'verbose', required: false, defaultValue: false },
4041
logToConsole: false,
4142
}, runnerParameters, new ActionsHost());

0 commit comments

Comments
 (0)