actions: add backporting bot

With new event 'pull_request_target' it is now possible to run the
backporting action that we used to have in the past as a Github app.

Use labels for backporting as before.

See https://github.com/tibdex/backport for more details.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-09-09 08:59:15 -04:00
commit bc8832f6c8

16
.github/workflows/backport.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled
jobs:
backport:
runs-on: ubuntu-18.04
name: Backport
steps:
- name: Backport
uses: zephyrproject-rtos/action-backport@v1.1.99
with:
github_token: ${{ secrets.GITHUB_TOKEN }}