diff options
author | Vijayakumar <kumvijaya@gmail.com> | 2024-05-07 14:32:43 +0530 |
---|---|---|
committer | Vijayakumar <kumvijaya@gmail.com> | 2024-05-07 14:32:43 +0530 |
commit | d327ae13f5da750e80ebc2497139b7fd94ad6a88 (patch) | |
tree | ff92885e49f7d930a4d7f36c18630b88e7864654 /.github/workflows/mergifyio_backport.yml | |
parent | e40e9e81809c6c49cb012a01c63a3463bfa41f8e (diff) | |
download | vyos-github-actions-d327ae13f5da750e80ebc2497139b7fd94ad6a88.tar.gz vyos-github-actions-d327ae13f5da750e80ebc2497139b7fd94ad6a88.zip |
T6310: add PR templates
Diffstat (limited to '.github/workflows/mergifyio_backport.yml')
-rw-r--r-- | .github/workflows/mergifyio_backport.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/mergifyio_backport.yml b/.github/workflows/mergifyio_backport.yml new file mode 100644 index 0000000..d9f863d --- /dev/null +++ b/.github/workflows/mergifyio_backport.yml @@ -0,0 +1,22 @@ +name: Mergifyio backport + +on: [issue_comment] + +jobs: + mergifyio_backport: + if: github.repository == 'vyos/vyos-1x' + 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][Ee][Rr][Gg][Ii][Ff][Yy][Ii][Oo] backport ' + + - uses: actions-ecosystem/action-add-labels@v1 + if: ${{ steps.regex-match.outputs.match != '' }} + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: backport |