Skip to content

Commit

Permalink
Merge pull request #3351 from c-po/action-update
Browse files Browse the repository at this point in the history
GitHub actions update for sagitta
  • Loading branch information
dmbaturin authored Apr 24, 2024
2 parents 33b4f34 + 05b679e commit c1b328f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/mergifyio_backport.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c1b328f

Please sign in to comment.