Skip to content

Commit

Permalink
Add backport workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper committed Dec 7, 2023
1 parent be54d01 commit 8831ec7
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 8831ec7

Please sign in to comment.