Skip to content

Commit

Permalink
Add backport action
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Jul 31, 2024
1 parent 9bc9b44 commit e386e8f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

permissions:
pull-requests: write
contents: write

jobs:
backport:
runs-on: ubuntu-latest
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
name: Backport
steps:
- name: Backport
uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e386e8f

Please sign in to comment.