sonic-buildimage/.github/workflows/automerge.yml
Liu Shilong 1c3bf41b89
[workflow] Use automerge_scan instead of automerge for correct commit message. (#17669)
Why I did it
automerge and automerge_scan have different behavior when merging PRs.
automerge may left some PRs unmerged. So, use automerge_scan instead.

Work item tracking
Microsoft ADO (number only): 26361240
How I did it
How to verify it
2024-01-09 20:28:18 +08:00

25 lines
672 B
YAML

# This workflow will merge pull requests automatically
#
name: automerge
on:
check_suite:
types:
- completed
jobs:
automerge:
# Disable workflow. Use automerge_scan instead to have the same behaviour.
if: github.event.check_suite.app.name == 'Azure Pipelines' && github.event.check_suite.conclusion == 'success' && false
runs-on: ubuntu-latest
steps:
- name: automerge
uses: 'pascalgn/automerge-action@v0.15.5'
env:
GITHUB_TOKEN: '${{ secrets.TOKEN }}'
MERGE_LABELS: 'automerge'
MERGE_METHOD: 'squash'
MERGE_FILTER_AUTHOR: 'mssonicbld'
MERGE_DELETE_BRANCH: true
LOG: "TRACE"