Skip to content

Commit 8150e64

Browse files
committed
Added external docs folder creation step
1 parent 7ff4c33 commit 8150e64

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,4 +404,8 @@ FodyWeavers.xsd
404404
*.msp
405405

406406
# JetBrains Rider
407-
*.sln.iml
407+
*.sln.iml
408+
409+
#Missing external url docs report Folder
410+
411+
missingexternaldocsurl/

azure-pipelines/powershell-docs.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,22 @@ extends:
6060
outputs:
6161
- output: pipelineArtifact
6262
displayName: 'Publish Examples to be reviewed as artifact'
63-
targetPath: $(Build.SourcesDirectory)/missingexternaldocsurl
63+
targetPath: 'microsoftgraph-docs-powershell\missingexternaldocsurl'
6464
artifactName: 'MissingExternalDocs'
6565
publishLocation: 'Container'
6666
steps:
6767
- template: azure-pipelines/update-template.yml@self
6868
parameters:
6969
projectFileName: $(projectFileName)
7070
testType: 'Execution'
71+
- task: PowerShell@2
72+
displayName: 'Create missing external docs folder'
73+
continueOnError: false
74+
inputs:
75+
targetType: 'filePath'
76+
pwsh: true
77+
filePath: microsoftgraph-docs-powershell\scripts\CreateExternalDocsFolder.ps1
78+
7179
# - task: PowerShell@2
7280
# displayName: 'Generate markdown files from PowerShell help files'
7381
# continueOnError: false

missingexternaldocsurl/sampl.csv

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
Param(
4+
[string] $MissingMsProdHeaderPath = (Join-Path $PSScriptRoot "../missingexternaldocsurl")
5+
)
6+
if (-not(Test-Path -PathType Container $MissingMsProdHeaderPath)) {
7+
New-Item -ItemType Directory -Force -Path $MissingMsProdHeaderPath
8+
}

0 commit comments

Comments
 (0)