Skip to content
Permalink
Browse files

Add backported label after a successful backport

  • Loading branch information
m-kuhn committed Dec 30, 2020
1 parent 8a3eefd commit 84f985c72b3c007474bcca797cfd680873f86736
Showing with 10 additions and 0 deletions.
  1. +2 −0 .github/label-backported.yml
  2. +8 −0 .github/workflows/backport.yml
@@ -0,0 +1,2 @@
backported:
- '**'
@@ -11,10 +11,18 @@ jobs:
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.conclution == 'success'
uses: actions/labeler@main
with:
configuration-path: .github/label-backported.yml
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 84f985c

Please sign in to comment.
You can’t perform that action at this time.