Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ name: Automatic backport action

on:
pull_request_target:
types: ["closed"]
types: ["closed", "labeled"]

permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests

jobs:
backport:
name: Backport PR
if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
runs-on: ubuntu-latest
steps:
- name: Backport Action
Expand All @@ -21,4 +26,4 @@ jobs:

- name: Debug log
if: ${{ failure() }}
run: cat ~/.backport/backport.debug.log
run: cat ~/.backport/backport.debug.log
Loading