Skip to content

Commit

Permalink
Merge pull request #303 from georchestra/backport-bot
Browse files Browse the repository at this point in the history
chore: update backport bot
  • Loading branch information
f-necas authored Sep 10, 2024
2 parents d027f36 + 5b6bf41 commit 4e22c4f
Showing 1 changed file with 7 additions and 2 deletions.
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

0 comments on commit 4e22c4f

Please sign in to comment.