summaryrefslogtreecommitdiff
path: root/.github/workflows/mergifyio_backport.yml
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-07 21:39:30 +0100
committerChristian Breunig <christian@breunig.cc>2023-12-07 21:39:30 +0100
commit534e3f06d388e85ad122594676df0abc05ac176a (patch)
tree327d4d76d5ff4e1f3ae04f0fc58d65e8c9115551 /.github/workflows/mergifyio_backport.yml
parentb1d7ca98c9b5a5f16ba255c774bc543fa07b3a36 (diff)
downloadvyatta-wanloadbalance-534e3f06d388e85ad122594676df0abc05ac176a.tar.gz
vyatta-wanloadbalance-534e3f06d388e85ad122594676df0abc05ac176a.zip
GitHub: add common actions
Diffstat (limited to '.github/workflows/mergifyio_backport.yml')
-rw-r--r--.github/workflows/mergifyio_backport.yml22
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..511b26c
--- /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/vyatta-wanloadbalance'
+ 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