azure-sdk-for-js/eng/pipelines/weekly_automation.yml

67 строки
1.9 KiB
YAML

trigger: none
pr: none
jobs:
- job: 'RushUpdate'
displayName: 'Rush update full'
variables:
- template: /eng/pipelines/templates/variables/globals.yml
pool:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: MMSUbuntu20.04
steps:
- template: /eng/pipelines/templates/steps/common.yml
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
- script: |
node common/scripts/install-run-rush.js install
node common/scripts/install-run-rush.js update --full
displayName: "Run Rush Update"
- template: /eng/common/pipelines/templates/steps/create-pull-request.yml
parameters:
RepoName: azure-sdk-for-js
BaseBranchName: $(DefaultBranch)
PRBranchName: automated-rush-update-full
CommitMsg: "Automatic rush update --full"
PRTitle: "[EngSys] automatic rush update --full"
PRBody: "This is an automatic PR generated weekly with changes from running the command rush update --full"
PushArgs: "-f"
- job: 'CheckDependency'
displayName: 'Check Package Dependency'
variables:
- template: /eng/pipelines/templates/variables/globals.yml
pool:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: MMSUbuntu20.04
steps:
- template: /eng/pipelines/templates/steps/common.yml
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
- script: |
node common/scripts/install-run-rush.js install
node common/scripts/install-run-rush.js unlink
git clean -xdf
displayName: "Rush Unlink"
- task: PowerShell@2
displayName: 'Check Dependency Warnings and File GitHub Issues'
inputs:
targetType: filePath
filePath: $(Build.SourcesDirectory)/eng/scripts/check-external-dependency.ps1
arguments: >
-RepoName azure-sdk-for-js
-RepoOwner azure
-AuthToken "$(azuresdk-github-pat)"
pwsh: true
- script: |
git reset --hard
displayName: "Reset Changes"