Skip to content

Commit

Permalink
Add backport workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper authored and tvpartytonight committed Dec 20, 2023
1 parent 366d2de commit fd9a63d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Backport merged pull request
on:
pull_request_target:
types: [labeled]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport merged pull request
runs-on: ubuntu-latest
# For security reasons, we don't want to checkout and run arbitrary code when
# using the pull_request_target trigger. So restrict this to cases where the
# backport label is applied to an already merged PR.
if: github.event.pull_request.merged && contains(github.event.label.name, 'backport')
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v1

0 comments on commit fd9a63d

Please sign in to comment.