Skip to content

Commit 4263eb1

Browse files
committed
Refining
1 parent 0054383 commit 4263eb1

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

.github/workflows/cd-pipeline.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ jobs:
2222
runs-on: ubuntu-latest
2323
environment: ${{ inputs.environment }}
2424
steps:
25-
- name: Show default environment variables
26-
run: |
27-
echo "The url is: ${{ secrets.DATAVERSEENVURL }}" # reference the default environment variables
28-
2925
- name: Setup .NET
3026
uses: actions/setup-dotnet@v3
3127
with:
@@ -56,7 +52,6 @@ jobs:
5652
dotnet Dataverse.ConfigurationMigrationTool.Console.dll import --schema "../data/data_schema.xml" --data "../data/data.xml"
5753
env:
5854
DOTNET_ENVIRONMENT: Production
59-
environment: Production
6055

6156

6257

.github/workflows/main-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

4-
name: 'Main Workflow'
4+
name: 'Main Pipeline'
55
run-name: ${{ github.event.repository.name }}_${{ github.run_number }}
66
permissions:
77
contents: read

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![.Net](https://img.shields.io/badge/.NET_8_SDK-5C2D91?style=for-the-badge&logoColor=white) ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/dotnetprog/aa1b559b3f614ea0719286f9e2972219/raw/code-coverage.json)
1+
![.Net](https://img.shields.io/badge/.NET_8_SDK-5C2D91?style=for-the-badge&logoColor=white) [![Main Workflow](https://github.com/dotnetprog/dataverse-configuration-migration-tool/actions/workflows/main-pipeline.yml/badge.svg)](https://github.com/dotnetprog/dataverse-configuration-migration-tool/actions/workflows/main-pipeline.yml) ![badge](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/dotnetprog/aa1b559b3f614ea0719286f9e2972219/raw/code-coverage.json)
22
# Dataverse Configuration Migration Tool
33

44
This repository contains a custom .NET CLI tool designed to import configuration data into Microsoft Dataverse environments. It streamlines the migration of configuration data, supports schema validation, and offers extensibility for advanced scenarios.
@@ -44,7 +44,7 @@ dotnet user-secrets set "Dataverse:Url" "<your-env-url>"
4444
Run the CLI tool with the required arguments (no need to pass clientId or clientSecret on the command line):
4545

4646
```powershell
47-
dotnet run --project Dataverse.ConfigurationMigrationTool.Console -- import --data "path/to/data.xml" --schema "path/to/schema.xml"
47+
dotnet run --environment DOTNET_ENVIRONMENT=Development --project Dataverse.ConfigurationMigrationTool.Console -- import --data "path/to/data.xml" --schema "path/to/schema.xml"
4848
```
4949

5050
#### Import Command Line Arguments
@@ -53,8 +53,6 @@ Verb: `import`
5353
- `--data` : Path to the data xml file
5454
- `--schema` : Path to the schema XML file
5555

56-
Additional options and advanced usage can be found by running `dotnet run -- --help`.
57-
5856
## Contributing
5957

6058
Contributions are welcome! To get started:

src/Dataverse.ConfigurationMigrationTool/Dataverse.ConfigurationMigrationTool.Console/Properties/launchSettings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"commandName": "Project",
55
"commandLineArgs": "import --schema ../../../TestAssets/data_schema.xml --data ../../../TestAssets/data.xml",
66
"environmentVariables": {
7-
"DOTNET_ENVIRONMENT": "Development",
8-
"environment": "Development"
9-
7+
"DOTNET_ENVIRONMENT": "Development"
108
}
119
}
1210
}

0 commit comments

Comments
 (0)