2021-11-23 16:45:50 -05:00
|
|
|
name: Backport
|
|
|
|
on:
|
2022-01-21 15:32:00 -05:00
|
|
|
pull_request_target:
|
2021-11-23 16:45:50 -05:00
|
|
|
types:
|
|
|
|
- closed
|
|
|
|
- labeled
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
backport:
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-04 18:22:54 -05:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
2021-11-23 16:45:50 -05:00
|
|
|
name: Backport
|
|
|
|
steps:
|
2022-02-08 18:06:32 -05:00
|
|
|
- name: GitHub App token
|
|
|
|
id: github_app_token
|
|
|
|
uses: tibdex/github-app-token@v1.5.0
|
|
|
|
with:
|
|
|
|
app_id: ${{ secrets.APP_ID }}
|
|
|
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
|
|
|
installation_id: 22958780
|
|
|
|
|
2021-11-23 16:45:50 -05:00
|
|
|
- name: Backport
|
2022-01-19 19:23:43 -05:00
|
|
|
uses: VachaShah/backport@v1.1.4
|
2021-11-23 16:45:50 -05:00
|
|
|
with:
|
2022-02-08 18:06:32 -05:00
|
|
|
github_token: ${{ steps.github_app_token.outputs.token }}
|
2022-01-19 19:23:43 -05:00
|
|
|
branch_name: backport/backport-${{ github.event.number }}
|