MeterSphere/.github/workflows/create-pr-from-push.yml

21 lines
492 B
YAML

on:
push:
branches:
- 'pr@**'
- 'repr@**'
name: 针对特定分支名自动创建 PR
jobs:
generic_handler:
name: 自动创建 PR
runs-on: ubuntu-latest
steps:
- name: Create pull request
uses: jumpserver/action-generic-handler@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: ${{ github.base_ref }}