summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-11 21:06:54 +0200
committerGitHub <noreply@github.com>2023-09-11 21:06:54 +0200
commit13a352e9357ee12596157548f02c0a83955c1e68 (patch)
treeffe1878ea9a7fb4f9ab1aeb77858aca50f9c444a /.github
parentaf398c51f7d06cdf582b347a35b1e5c867aaea58 (diff)
downloadvyos-1x-13a352e9357ee12596157548f02c0a83955c1e68.tar.gz
vyos-1x-13a352e9357ee12596157548f02c0a83955c1e68.zip
GitHub: add MergifyIo action
Diffstat (limited to '.github')
-rw-r--r--.github/workflow/mergifyio_backport.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflow/mergifyio_backport.yml b/.github/workflow/mergifyio_backport.yml
new file mode 100644
index 000000000..f1f4312c4
--- /dev/null
+++ b/.github/workflow/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]ergifyio backport '
+
+ - uses: actions-ecosystem/action-add-labels@v1
+ if: ${{ steps.regex-match.outputs.match != '' }}
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ labels: backport