Merge Daily Build Branch Task
Use this Azure DevOps custom task to create or update a daily-build branch by merging active pull requests targeting main.
This task uses same script as in PowerShell module

How To Use In YAML Pipelines
- Install this extension in your Azure DevOps organization.
- Add the task to a YAML pipeline.
- Ensure the pipeline has permission to read PRs and push to the target branch.
YAML Example
schedules:
- cron: '0 3 * * *'
displayName: 'Daily 3:00 build'
branches:
include:
- main
always: true
pool:
vmImage: windows-latest
steps:
- checkout: self
persistCredentials: true
- task: MergeDailyBuildBranch@1
displayName: Merge active PRs into daily-build
inputs:
dailyBuildBranch: daily-build
mergeStrategy: merge
defaultPriority: '100'
skipUnchangedPush: true
dailyBuildBranch: Name of the branch to update (default: daily-build)
mergeStrategy: merge or squash (default: merge)
defaultPriority: Fallback priority if no priority:x label is present (default: 100)
skipUnchangedPush: Skip force-push when branch content is unchanged (default: false)
| |