From b215be038fe70fb40efb3d1a118f7336e89e7a09 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 18 Aug 2023 17:56:43 +0200 Subject: [PATCH] github: add PR backport action --- .github/workflows/backport.yml | 19 +++++++++++++++++++ .github/workflows/firmware.yml | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 00000000..94fb4558 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,19 @@ +--- +name: Backport merged pull request + +on: # yamllint disable-line rule:truthy + pull_request_target: + types: [closed] +permissions: + contents: write # so it can comment + pull-requests: write # so it can create pull requests +jobs: + backport: + name: Backport pull request + runs-on: ubuntu-latest + # Don't run on closed unmerged pull requests + if: github.event.pull_request.merged + steps: + - uses: actions/checkout@v3 + - name: Create backport pull requests + uses: korthout/backport-action@v1 diff --git a/.github/workflows/firmware.yml b/.github/workflows/firmware.yml index f1413685..0d7f21d1 100644 --- a/.github/workflows/firmware.yml +++ b/.github/workflows/firmware.yml @@ -11,6 +11,7 @@ on: - '**/CODEOWNERS' - '.github/ISSUE_TEMPLATE' - '.github/*.yml' + - '.github/workflows/backport.yml' - 'contrib/sign.sh' jobs: