Skip to content

Commit

Permalink
Add support for target-environment to install-catalog action (#592)
Browse files Browse the repository at this point in the history
* added target-environment

* empty commit to retrigger PR checks

---------

Co-authored-by: Crash Collison <[email protected]>
  • Loading branch information
devkeydet and tehcrashxor authored Jun 26, 2024
1 parent d0dd819 commit a717a8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions install-catalog/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ inputs:
required: true

target-url:
description: 'Target URL of Power Platform environment for catalog item installation.'
required: true
description: '(deprecated) Target URL of Power Platform environment for catalog item installation.'
required: false

target-environment:
description: 'Url or ID of the target environment for catalog item installation.'
required: false

settings:
description: 'Runtime Package Settings for the installation framework to execute. The format of the string must be `key=value|key=value`.'
Expand Down
1 change: 1 addition & 0 deletions src/actions/install-catalog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export async function main (): Promise<void> {
environmentUrl: getEnvironmentUrl(),
catalogItemId: parameterMap['catalog-item-id'],
targetEnvironmentUrl: parameterMap['target-url'],
targetEnvironment: parameterMap['target-environment'],
settings: parameterMap['settings'],
targetVersion: parameterMap['target-version'],
pollStatus: parameterMap['poll-status'],
Expand Down
3 changes: 2 additions & 1 deletion src/test/installCatalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ describe("install-catalog tests", () => {
credentials: credentials,
environmentUrl: mockEnvironmentUrl,
catalogItemId: { name: 'catalog-item-id', required: true, defaultValue: undefined },
targetEnvironmentUrl: { name: 'target-url', required: true, defaultValue: undefined },
targetEnvironmentUrl: { name: 'target-url', required: false, defaultValue: undefined },
targetEnvironment: { name: 'target-environment', required: false, defaultValue: undefined },
settings: { name: 'settings', required: false, defaultValue: undefined },
targetVersion: { name: 'target-version', required: false, defaultValue: undefined },
pollStatus: { name: 'poll-status', required: false, defaultValue: 'false' },
Expand Down

0 comments on commit a717a8a

Please sign in to comment.