Add manually triggered Azure DevOps pipeline for Renovate
This commit is contained in:
1 parent
3c8be77b50
commit
0f42d9685f
2 files changed
+63
No files matched your search
@@ -0,0 +1,51 @@
|
||||
# Manually triggered Renovate run for this repository on Azure DevOps (Server).
|
||||
# The repository configuration is read from renovate.json in the repository.
|
||||
#
|
||||
# Requirements:
|
||||
# - Self-hosted agent with Git and internet access to npmjs.org / nuget.org
|
||||
# - The build service identity needs these permissions on this repository:
|
||||
# Contribute, Create branch, Contribute to pull requests
|
||||
trigger: none
|
||||
pr: none
|
||||
|
||||
pool:
|
||||
name: Default # self-hosted agent pool
|
||||
|
||||
variables:
|
||||
renovateVersion: 44.149.3
|
||||
|
||||
steps:
|
||||
# Renovate clones the repository itself
|
||||
- checkout: none
|
||||
|
||||
- task: UseNode@1
|
||||
displayName: Use Node.js 24
|
||||
inputs:
|
||||
version: 24.x
|
||||
|
||||
# .NET SDK for updating the NuGet lock files (packages.lock.json)
|
||||
- task: UseDotNet@2
|
||||
displayName: Use .NET SDK 8
|
||||
inputs:
|
||||
packageType: sdk
|
||||
version: 8.x
|
||||
|
||||
- script: >-
|
||||
npx --yes renovate@$(renovateVersion)
|
||||
--platform=azure
|
||||
--endpoint=$(System.CollectionUri)
|
||||
--report-type=file --report-path=renovate-results/renovate-report.json
|
||||
"$(System.TeamProject)/$(Build.Repository.Name)"
|
||||
displayName: Run Renovate
|
||||
env:
|
||||
RENOVATE_TOKEN: $(System.AccessToken)
|
||||
RENOVATE_GIT_AUTHOR: Renovate Bot <renovate@localhost>
|
||||
# Relative path on purpose: Renovate lowercases LOG_FILE
|
||||
LOG_FILE: renovate-results/renovate.log
|
||||
LOG_FILE_LEVEL: debug
|
||||
LOG_FILE_FORMAT: pretty
|
||||
|
||||
- publish: renovate-results
|
||||
artifact: renovate-results
|
||||
displayName: Publish report and debug log
|
||||
condition: always()
|
||||
Reference in new issue
Block a user