Skip to content
2 changes: 2 additions & 0 deletions .azure-pipelines/common-templates/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
- checkout: self
clean: true
fetchDepth: 1
submodules: true
persistCredentials: true

- task: PowerShell@2
Expand All @@ -32,6 +33,7 @@ steps:
git pull
git status


- task: securedevelopmentteam.vss-secure-development-tools.build-task-credscan.CredScan@2
displayName: "Run CredScan"
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
parameters:
- name: Branch
type: string
default: "WeeklyOpenApiDocsDownload"
- name: BaseBranch
type: string
default: "dev"
- name: BuildAgent
default: MsGraphBuildAgentsWindows
displayName: Build Agent

jobs:
Expand Down Expand Up @@ -132,7 +129,7 @@ jobs:
git add .
git commit -m 'Weekly OpenApiDocs Download. [run ci]'
git status
git push --set-upstream origin $(ComputeBranch.WeeklyBranch)
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.WeeklyBranch)
git status

# References
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ steps:
git status
git add "$(System.DefaultWorkingDirectory)/src/Authentication/Authentication/custom/common/MgCommandMetadata.json"
git commit -m 'Add generated MgCommandMetadata.json. [run ci]'
git push
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
git status
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ steps:
targetType: inline
script: |
git status
git push --set-upstream origin $(ComputeBranch.DocsBranch)
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git" $(ComputeBranch.DocsBranch)
git status
8 changes: 4 additions & 4 deletions .azure-pipelines/weekly-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ parameters:
variables:
Branch: "WeeklyOpenApiDocsDownload"
BaseBranch: "dev"
BUILDAGENT: ${{ parameters.BuildAgent }}

pool: $(BUILDAGENT)
BuildAgent: ${{ parameters.BuildAgent }}

pool: $(BuildAgent)
trigger: none
pr: none
schedules:
- cron: "0 12 * * WED" # Run every wednesday at noon UTC
- cron: "0 12 * * WED" # Run every Wednesday at noon UTC
displayName: "Weekly PS SDK generation"
branches:
include:
Expand All @@ -33,6 +32,7 @@ stages:
parameters:
Branch: $(Branch)
BaseBranch: $(BaseBranch)
BuildAgent: $(BuildAgent)

- stage: GenerateServiceModules
displayName: Generate service modules
Expand Down