Skip to content

Commit

Permalink
ci: auto backport squashed commits based on labels (frappe#26622) (fr…
Browse files Browse the repository at this point in the history
…appe#26640)

(cherry picked from commit 057a0a9)

Co-authored-by: Ankush <ankush@iwebnotes.com>
  • Loading branch information
frappe-pr-bot and ankush authored Jul 26, 2021
1 parent 2377660 commit cfd73ed
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
name: Backport
on:
pull_request:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
runs-on: ubuntu-18.04
name: Backport
main:
runs-on: ubuntu-latest
steps:
- name: Backport
uses: tibdex/backport@v1
- name: Checkout Actions
uses: actions/checkout@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: "ankush/backport"
path: ./actions
ref: develop
- name: Install Actions
run: npm install --production --prefix ./actions
- name: Run backport
uses: ./actions/backport
with:
token: ${{secrets.BACKPORT_BOT_TOKEN}}
labelsToAdd: "backport"
title: "{{originalTitle}}"

0 comments on commit cfd73ed

Please sign in to comment.