Skip to content

Commit

Permalink
feat: update azure pipeline yaml files on creating new project
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmet-cetinkaya committed Jan 5, 2024
1 parent b3cf0d5 commit 9afe69c
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,37 @@ await replaceFileContentWithProjectName(
projectName: projectName.ToCamelCase()
);

await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.development.yml",
search: "starterProject",
projectName: projectName.ToCamelCase()
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.development.yml",
search: "NArchitecture",
projectName: projectName.ToPascalCase()
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.staging.yml",
search: "starterProject",
projectName: projectName.ToCamelCase()
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.staging.yml",
search: "NArchitecture",
projectName: projectName.ToPascalCase()
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.production.yml",
search: "starterProject",
projectName: projectName.ToCamelCase()
);
await replaceFileContentWithProjectName(
path: $"{Environment.CurrentDirectory}/.azure/azure-pipelines.production.yml",
search: "NArchitecture",
projectName: projectName.ToPascalCase()
);

Directory.SetCurrentDirectory("../");

static async Task replaceFileContentWithProjectName(
Expand Down

0 comments on commit 9afe69c

Please sign in to comment.