QGIS/.github/workflows/backport.yml
Matthias Kuhn 4435aeb776
Type
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
2020-12-30 16:59:44 +01:00

29 lines
922 B
YAML

name: Backport
on:
pull_request:
types:
- closed
- labeled
jobs:
backport:
runs-on: ubuntu-18.04
name: Backport
steps:
- name: Backport Bot
id: backport
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
uses: Gaurav0/backport@v1.0.26
with:
bot_username: qgis-bot
bot_token: ddbdec32940df79f1adf2369b4b10f10b5a66f65
bot_token_key: a1b2c3d47311f8e29e204f85a81b4df4a44e252c
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Backported Label
if: steps.backport.conclusion == 'success'
uses: actions/labeler@main
with:
configuration-path: .github/label-backported.yml
repo-token: "${{ secrets.GITHUB_TOKEN }}"