git.iko.soy/typeable/nixpkgs
on master help sign in
Add backporting action

If "backport <branch>" label is applied to a PR, once the PR is merged, github-actions bot will create another PR targeting <branch> and cherry-picking commits.

commit031ea8124ced3bb2bd5522933140713d0c4d8362 authorDomen Kožar <domen@dev.si> dateMon 24 May 2021, 17:42 (5 years ago) parent0f08ac1
1 file changed+20
.github/workflows/backport.yml+20
.github/workflows/backport.ymlnew file+20
@@ -0,0 +1,20 @@
1+name: Backport
2+on:
3+ pull_request:
4+ types: [closed]
5+jobs:
6+ backport:
7+ name: Create backport PRs
8+ if: github.event.pull_request.merged == true
9+ runs-on: ubuntu-latest
10+ steps:
11+ - uses: actions/checkout@v2.3.4
12+ with:
13+ # required to find all branches
14+ fetch-depth: 0
15+ - name: Create backport PRs
16+ uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
17+ with:
18+ github_token: ${{ secrets.GITHUB_TOKEN }}
19+ github_workspace: ${{ github.workspace }}
20+ version: 9b8949dcd4295d364b0939f07d0c7593598d26cd