From c5d2135c093d6c74171bea72c5681de930770084 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 23 Apr 2024 07:30:49 +0200 Subject: GitHub: adjust MergifyIo regex match to both upper and lower case (cherry picked from commit 76cc762ef4aacd1120d533e1122f56ce09a2cfa9) --- .github/workflows/mergifyio_backport.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/mergifyio_backport.yml 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 -- cgit v1.2.3 From 05b679eca4b2f2cba840ffc94e829d05cad455d5 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 23 Apr 2024 07:38:17 +0200 Subject: GitHub: use ubuntu-latest for labeler action (cherry picked from commit eab0adcbf30734045cf04c140d30efae1abdf194) --- .github/workflows/pull-request-labels.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request-labels.yml b/.github/workflows/pull-request-labels.yml index 3398af5b0..43856beaa 100644 --- a/.github/workflows/pull-request-labels.yml +++ b/.github/workflows/pull-request-labels.yml @@ -12,9 +12,9 @@ on: jobs: add-pr-label: name: Add PR Labels - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest permissions: contents: read pull-requests: write steps: - - uses: actions/labeler@v5.0.0 + - uses: actions/labeler@v5 -- cgit v1.2.3