Skip to content

Commit

Permalink
feat(ci): add workflow to backport PRs in other branches (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
mavimo authored Mar 20, 2024
1 parent b0bd14e commit b390f40
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: agent-runner
name: Backport
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
title_template: "[Backport] <%= title %>"

0 comments on commit b390f40

Please sign in to comment.