summaryrefslogtreecommitdiffstats
path: root/.github/workflows/mergifyio_backport.yml
blob: 455dcbeb8e4f6654c146fbaf36cb763ff0d243ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Mergifyio backport

on: [issue_comment]

jobs:
  mergifyio_backport:
    if: github.repository == 'frrouting/frr'
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - uses: actions-ecosystem/action-regex-match@v2
        id: regex-match
        with:
          text: ${{ github.event.comment.body }}
          regex: '[Mm]ergifyio backport '

      - uses: actions-ecosystem/action-add-labels@v1
        if: ${{ steps.regex-match.outputs.match != '' }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          labels: backport