12ab9af4fb
Support to merge the SONiC package versions upgrade pull request automatically. #### How I did it Add the automerge tag in the pull request. 1. Sent by the author mssonicbld 2. Only contains changes in files/build/**/* 3. Only for the specified branch 202012 Merge the pull request. 1. Sent by the author mssonicbld 2. The Azure Pipelines checker complete and successful 3. The pull request contains label automerge
23 lines
570 B
YAML
23 lines
570 B
YAML
# This workflow will merge pull requests automatically
|
|
#
|
|
|
|
name: automerge
|
|
on:
|
|
check_suite:
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
automerge:
|
|
if: github.event.check_suite.app.name == 'Azure Pipelines' && github.event.check_suite.conclusion == 'success'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: automerge
|
|
uses: 'pascalgn/automerge-action@v0.13.1'
|
|
env:
|
|
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
|
|
MERGE_LABELS: 'automerge'
|
|
MERGE_METHOD: 'squash'
|
|
MERGE_FILTER_AUTHOR: 'mssonicbld'
|
|
MERGE_DELETE_BRANCH: true
|