99
1010variables :
1111 BRANCH : ' weeklyOpenApiDocsDownload'
12+ 13+ GitUserName : ' Microsoft Graph DevX Tooling'
14+ BaseBranch : ' dev'
1215
1316schedules :
14- - cron : " 0 12 * * 5 " # Run Every Friday at Midnight UTC Time
17+ - cron : " 0 0 * * WED " # Run Every Wednesday
1518 displayName : " Weekly OpenApiDocs Download and PR"
1619 branches :
1720 include :
2225 - checkout : self
2326 persistCredentials : true
2427 clean : true
28+ fetchDepth : 1
29+
2530 - task : securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
2631 displayName : ' Run CredScan'
2732 inputs :
@@ -34,20 +39,20 @@ steps:
3439 script : |
3540 $branch = "{0}.{1}" -f "weeklyOpenApiDocsDownload", (Get-Date -Format yyyyMMdd)
3641 Write-Host "##vso[task.setvariable variable=BRANCH;]$branch"
42+
3743 - task : PowerShell@2
3844 displayName : " Configure User"
3945 inputs :
4046 targetType : ' inline'
4147 script : |
42- git config --global user.email "[email protected] " 43- git config --global user.name "Azure Devops"
48+ git config --global user.email $(GitUserEmail)
49+ git config --global user.name $(GitUserName)
4450
4551 - task : PowerShell@2
4652 displayName : " Show Directory"
4753 inputs :
4854 targetType : ' inline'
4955 script : |
50- Write-Host $(System.DefaultWorkingDirectory)
5156 ls $(System.DefaultWorkingDirectory)
5257 ls $(System.DefaultWorkingDirectory)/tools
5358
7075 targetType : ' inline'
7176 script : |
7277 git status
73- git checkout dev
78+ git checkout $(BaseBranch)
7479 git branch $(BRANCH)
7580 git checkout $(BRANCH)
7681 git status
@@ -95,10 +100,10 @@ steps:
95100 GITHUB_TOKEN : $(GITHUB_TOKEN)
96101 MESSAGE_TITLE : Weekly OpenApiDocs Download
97102 MESSAGE_BODY : " This pull request was automatically created by Azure Devops, \n\n Contains Weekly OpenApiDocs Download files for v1.0 and beta"
98- REVIEWERS : peombwa,ddyett
103+ REVIEWERS : peombwa,ddyett,MIchaelMainer
99104 ASSIGNEDTO : finsharp
100105 LABELS : generated
101- BASE : dev
106+ BASE : $(BaseBranch)
102107 BRANCH : $(BRANCH)
103108 inputs :
104109 targetType : ' inline'
0 commit comments