summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-13 15:32:02 +0200
committerChristian Breunig <christian@breunig.cc>2023-09-13 15:32:02 +0200
commitc2fca63ebecaf9084bf592c5563867f09a2a31f8 (patch)
treeb60812d44ed91e20ab05d02a0fb68380b6a0c9e3 /.github
parent1f14b2d766517d70f49046bbcca755a8486e98f7 (diff)
downloadvyos-build-c2fca63ebecaf9084bf592c5563867f09a2a31f8.tar.gz
vyos-build-c2fca63ebecaf9084bf592c5563867f09a2a31f8.zip
GitHub: add Mergify backport helper
Diffstat (limited to '.github')
-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 00000000..f1f4312c
--- /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]ergifyio backport '
+
+ - uses: actions-ecosystem/action-add-labels@v1
+ if: ${{ steps.regex-match.outputs.match != '' }}
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ labels: backport