summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-23 07:30:49 +0200
committerChristian Breunig <christian.breunig@rohde-schwarz.com>2024-04-23 07:39:47 +0200
commitc5d2135c093d6c74171bea72c5681de930770084 (patch)
tree7ff940ae76c424d395a3539ae4b5c3bf2f1e234a /.github
parent92baf98bf80682cdec7adcf19bdf0e89ab597ff1 (diff)
downloadvyos-1x-c5d2135c093d6c74171bea72c5681de930770084.tar.gz
vyos-1x-c5d2135c093d6c74171bea72c5681de930770084.zip
GitHub: adjust MergifyIo regex match to both upper and lower case
(cherry picked from commit 76cc762ef4aacd1120d533e1122f56ce09a2cfa9)
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 000000000..d9f863d9a
--- /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