2021-01-20 03:58:59 +03:00
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
2021-12-21 02:28:09 +03:00
name : 'copy-environment'
description : 'Power Platform Copy Environment Action'
2021-01-20 03:58:59 +03:00
inputs :
source-url :
description : 'Source URL of Power Platform environment to copy; e.g. "https://test-env-source.crm.dynamics.com"'
2022-01-18 08:15:46 +03:00
required : false
2021-01-20 03:58:59 +03:00
target-url :
description : 'Target URL of Power Platform environment to copy; e.g. "https://test-env-target.crm.dynamics.com"'
2022-01-18 08:15:46 +03:00
required : false
source-env :
description : 'Source Id or URL of Power Platform environment to copy.'
required : false
target-env :
description : 'Target Id or URL of Power Platform environment to copy.'
required : false
2021-01-20 03:58:59 +03:00
user-name :
2021-02-25 21:40:47 +03:00
description : 'Power Platform user name to authenticate with, e.g. myname@my-org.onmicrosoft.com. Setting this input makes user-name and password required; specifying alternate "app-id" credential set of inputs will result in an error.'
required : false
2021-01-20 03:58:59 +03:00
password-secret :
2022-01-18 08:15:46 +03:00
description: 'Power Platform password, required if authenticating with username. Do NOT checkin password, instead create a secret and reference it here with: see : https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#using-encrypted-secrets-in-a-workflow'
2021-02-25 21:40:47 +03:00
required : false
app-id :
description : 'The application id to authenticate with. Setting this input makes app-id, tenant-id and client-secret required; specifying alternate "username" credential set of inputs will result in an error.'
required : false
client-secret :
2021-12-21 02:28:09 +03:00
description : 'The client secret to authenticate with. Required if authenticating with app-id.'
2021-02-25 21:40:47 +03:00
required : false
tenant-id :
2021-12-21 02:28:09 +03:00
description : 'Tenant id if using app-id & client secret to authenticate.'
2021-11-05 20:35:14 +03:00
required : false
2022-03-19 00:39:51 +03:00
cloud :
description: 'Cloud instance to authenticate with. Default : Public. See "pac auth create help" for valid cloud instance names'
required : false
default : 'Public'
2021-11-05 20:35:14 +03:00
copy-type :
2021-12-21 02:28:09 +03:00
description : 'Type of copy - FullCopy or MinimalCopy'
2021-11-05 20:35:14 +03:00
required : false
2021-12-21 02:28:09 +03:00
default : 'FullCopy'
2021-11-05 20:35:14 +03:00
override-friendly-name :
2021-12-21 02:28:09 +03:00
description : 'Check to override the friendly name of the target environment.'
2021-11-05 20:35:14 +03:00
required : false
2021-12-21 02:28:09 +03:00
default : 'false'
2021-11-05 20:35:14 +03:00
friendly-name :
2021-12-21 02:28:09 +03:00
description : 'Set the friendly name of the target environment.'
2021-02-25 21:40:47 +03:00
required : false
2021-01-20 03:58:59 +03:00
runs :
2022-11-09 02:02:20 +03:00
using : 'node16'
2021-12-21 02:28:09 +03:00
main : '../dist/actions/copy-environment/index.js'