add comment in ci.yaml (#2544)
This commit is contained in:
Родитель
c6e3ce4618
Коммит
26f76d879a
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@azure-tools/js-sdk-release-tools",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"start": "node dist/changelogToolCli.js",
|
||||
|
|
|
@ -45,11 +45,14 @@ export function modifyOrGenerateCiYaml(azureSDKForJSRepoRoot: string, changedPac
|
|||
changed = addExcludeBranch(ciYaml?.pr?.branches) || changed;
|
||||
changed = addArtifact(ciYaml?.extends?.parameters?.Artifacts, name, safeName) || changed;
|
||||
if (changed) {
|
||||
fs.writeFileSync(ciYamlPath, yaml.stringify(ciYaml), {encoding: 'utf-8'});
|
||||
fs.writeFileSync(ciYamlPath, `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
|
||||
|
||||
${yaml.stringify(ciYaml)}`, {encoding: 'utf-8'});
|
||||
}
|
||||
} else {
|
||||
relativeRpFolderPath = relativeRpFolderPath.replace(/\\/g, '/');
|
||||
const ciYaml = `# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
|
||||
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
|
|
Загрузка…
Ссылка в новой задаче