summaryrefslogtreecommitdiff
path: root/.github/workflows/mergifyio_backport.yml
diff options
context:
space:
mode:
authorVijayakumar A <36878324+kumvijaya@users.noreply.github.com>2024-05-09 12:40:51 +0530
committerGitHub <noreply@github.com>2024-05-09 12:40:51 +0530
commitaab7a7122a70f7fe7cafcabdc7ca5a8125f84939 (patch)
treeb5dfbdb71765812f89fbf105bc8037a3ad485cb8 /.github/workflows/mergifyio_backport.yml
parent9b632d47ee6c54da9bfccf87b32fb281380dd356 (diff)
parentd8bc71a13f19258270364dc7b3d54fb7c52a67b7 (diff)
downloadvyos-github-actions-aab7a7122a70f7fe7cafcabdc7ca5a8125f84939.tar.gz
vyos-github-actions-aab7a7122a70f7fe7cafcabdc7ca5a8125f84939.zip
Merge pull request #2 from vyos/feature/add-codeql-workflowHEADcurrent
T6315: added codeql reusable workflow
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..d9f863d
--- /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