Skip to content

Commit 67bb7c1

Browse files
authored
build(shared code): cron job to sync azure core daily (#3142)
1 parent a3afb20 commit 67bb7c1

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

eng/pipelines/sync-sharedcode.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
trigger: 'none'
2+
pr: 'none'
3+
4+
schedules:
5+
- cron: '0 0 * * *'
6+
displayName: 'Daily Synchronize Azure Core Shared Codes'
7+
branches:
8+
include:
9+
- feature/v3
10+
always: true
11+
12+
resources:
13+
repositories:
14+
- repository: azure-sdk-tools
15+
type: github
16+
name: Azure/azure-sdk-tools
17+
endpoint: azure
18+
ref: refs/tags/azure-sdk-tools_20220404.3
19+
20+
stages:
21+
- stage: Synchronize_Shared_Codes
22+
jobs:
23+
- job: Download_And_Create_PR
24+
pool:
25+
vmImage: ubuntu-20.04
26+
variables:
27+
currentDateTime: $[ format('{0:yyyy}-{0:MM}-{0:dd}_{0:HH}:{0:mm}:{0:ss}', pipeline.startTime) ]
28+
steps:
29+
- checkout: self
30+
- checkout: azure-sdk-tools
31+
- pwsh: >
32+
./eng/DownloadSharedSource.ps1
33+
name: Download
34+
displayName: 'Download Azure Core Shared Codes'
35+
workingDirectory: $(Build.SourcesDirectory)/autorest.csharp
36+
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml@azure-sdk-tools
37+
parameters:
38+
BaseBranchName: feature/v3
39+
RepoName: autorest.csharp
40+
PROwner: Azure
41+
PRBranchName: update-azure-core-shared-codes-$(Build.BuildId)
42+
CommitMsg: Update Azure Core Shared Codes $(currentDateTime)
43+
PRBody: Update Azure Core Shared Codes $(currentDateTime)
44+
PRTitle: Update Azure Core Shared Codes $(currentDateTime)
45+
WorkingDirectory: $(Build.SourcesDirectory)/autorest.csharp
46+
ScriptDirectory: $(Build.SourcesDirectory)/azure-sdk-tools/eng/common/scripts
47+

0 commit comments

Comments
 (0)