mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
50c8cc3020
[skip ci]
34 lines
954 B
YAML
34 lines
954 B
YAML
name: Backport
|
|
on:
|
|
pull_request_target:
|
|
types: [closed, labeled]
|
|
issue_comment:
|
|
types: [created]
|
|
jobs:
|
|
backport:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
name: Backport Pull Request
|
|
if: >
|
|
github.repository_owner == 'neovim' && (
|
|
github.event_name == 'pull_request_target' &&
|
|
github.event.pull_request.merged
|
|
) || (
|
|
github.event_name == 'issue_comment' &&
|
|
github.event.issue.pull_request &&
|
|
contains(github.event.comment.body, '/backport')
|
|
)
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
# required to find all branches
|
|
fetch-depth: 0
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
- name: Create backport PRs
|
|
uses: zeebe-io/backport-action@v0.0.7
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
github_workspace: ${{ github.workspace }}
|