Skip to content

Commit 25f28b1

Browse files
committed
Made changes
1 parent ab6d3ce commit 25f28b1

File tree

6 files changed

+31
-27
lines changed

6 files changed

+31
-27
lines changed

azure-pipelines/powershell-docs.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,29 @@ jobs:
4545
projectFileName: $(projectFileName)
4646
testType: 'Execution'
4747

48-
# - task: PowerShell@2
49-
# displayName: 'Copy files from powershell sdk'
50-
# continueOnError: false
51-
# inputs:
52-
# targetType: 'filePath'
53-
# pwsh: true
54-
# filePath: microsoftgraph-docs-powershell\scripts\FileCopy.ps1
48+
- task: PowerShell@2
49+
displayName: 'Copy files from powershell sdk'
50+
continueOnError: false
51+
inputs:
52+
targetType: 'filePath'
53+
pwsh: true
54+
filePath: microsoftgraph-docs-powershell\scripts\FileCopy.ps1
5555

56-
# - task: PowerShell@2
57-
# displayName: 'Update Powershell Help'
58-
# continueOnError: false
59-
# inputs:
60-
# targetType: 'filePath'
61-
# pwsh: true
62-
# filePath: microsoftgraph-docs-powershell\microsoftgraph\UpdateHelp.ps1
56+
- task: PowerShell@2
57+
displayName: 'Update Powershell Help'
58+
continueOnError: false
59+
inputs:
60+
targetType: 'filePath'
61+
pwsh: true
62+
filePath: microsoftgraph-docs-powershell\microsoftgraph\UpdateHelp.ps1
6363

64-
# - task: PowerShell@2
65-
# displayName: 'Escape disallowed html tags'
66-
# continueOnError: false
67-
# inputs:
68-
# targetType: 'filePath'
69-
# pwsh: true
70-
# filePath: microsoftgraph-docs-powershell\microsoftgraph\EscapeDisallowedHtmlTags.ps1
64+
- task: PowerShell@2
65+
displayName: 'Escape disallowed html tags'
66+
continueOnError: false
67+
inputs:
68+
targetType: 'filePath'
69+
pwsh: true
70+
filePath: microsoftgraph-docs-powershell\microsoftgraph\EscapeDisallowedHtmlTags.ps1
7171

7272
- task: PowerShell@2
7373
displayName: 'Update metadata header'
@@ -97,7 +97,7 @@ jobs:
9797
git config --global user.name "Timothy Wamalwa"
9898
cd microsoftgraph-docs-powershell
9999
$date = Get-Date -Format "dd-MM-yyyy"
100-
$proposedBranch = "weekly_v2_docs_update_29-06-2023"
100+
$proposedBranch = "weekly_v2_docs_update_$date"
101101
git add .
102102
git commit -m "Updating help files "+$date
103103
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $proposedBranch

microsoftgraph/EscapeDisallowedHtmlTags.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ return "NA"
253253
}
254254
Set-Location microsoftgraph-docs-powershell
255255
$date = Get-Date -Format "dd-MM-yyyy"
256-
$proposedBranch = "weekly_v2_docs_update_"+$date
256+
$proposedBranch = "weekly_v2_docs_update_$date"
257257
$exists = git branch -l $proposedBranch
258258
if ([string]::IsNullOrEmpty($exists)) {
259259
git checkout -b $proposedBranch

microsoftgraph/UpdateHelp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if ($PSEdition -ne 'Core') {
107107
}
108108
Set-Location microsoftgraph-docs-powershell
109109
$date = Get-Date -Format "dd-MM-yyyy"
110-
$proposedBranch = "weekly_v2_docs_update_"+$date
110+
$proposedBranch = "weekly_v2_docs_update_$date"
111111
$exists = git branch -l $proposedBranch
112112
if ([string]::IsNullOrEmpty($exists)) {
113113
git checkout -b $proposedBranch

scripts/GenerateServiceModules.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ Param(
33
)
44
if (-not (Test-Path $ModuleMappingConfigPath)) {
55
Write-Error "Module mapping file not be found: $ModuleMappingConfigPath."
6-
}
6+
}
7+
8+
$date = Get-Date -Format "dd-MM-yyyy"
9+
$proposedBranch = "weekly_v2_docs_update_$date"
10+
Write-Host $proposedBranch

scripts/MsProdUpdate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ function WebScrapping {
291291
}
292292
Set-Location microsoftgraph-docs-powershell
293293
$date = Get-Date -Format "dd-MM-yyyy"
294-
$proposedBranch = "weekly_v2_docs_update_29-06-2023"
294+
$proposedBranch = "weekly_v2_docs_update_$date"
295295
$exists = git branch -l $proposedBranch
296296
if ([string]::IsNullOrEmpty($exists)) {
297297
git checkout -b $proposedBranch

scripts/UpdateLinks.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ foreach($Data in $DeserializedContent)
207207
}
208208
Set-Location microsoftgraph-docs-powershell
209209
$date = Get-Date -Format "dd-MM-yyyy"
210-
$proposedBranch = "weekly_v2_docs_update_29-06-2023"
210+
$proposedBranch = "weekly_v2_docs_update_$date"
211211
$exists = git branch -l $proposedBranch
212212
if ([string]::IsNullOrEmpty($exists)) {
213213
git checkout -b $proposedBranch

0 commit comments

Comments
 (0)