summaryrefslogtreecommitdiff
path: root/.github/workflows/mergifyio_backport.yml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-24 10:16:10 +0200
committerGitHub <noreply@github.com>2024-04-24 10:16:10 +0200
commitc1b328f6818b0ff7e4739ea04572bf4da884f134 (patch)
tree1ed84cc52e2edcbce5bf47be81beddeb9d71d834 /.github/workflows/mergifyio_backport.yml
parent33b4f340b6ede9a72ff06dd23ecee49528360918 (diff)
parent05b679eca4b2f2cba840ffc94e829d05cad455d5 (diff)
downloadvyos-1x-c1b328f6818b0ff7e4739ea04572bf4da884f134.tar.gz
vyos-1x-c1b328f6818b0ff7e4739ea04572bf4da884f134.zip
Merge pull request #3351 from c-po/action-update
GitHub actions update for sagitta
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 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