2022-04-25 14:17:05 +08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'pr@**'
|
|
|
|
- 'repr@**'
|
2021-04-01 09:29:58 +08:00
|
|
|
|
2022-04-25 14:17:05 +08:00
|
|
|
name: 针对特定分支名自动创建 PR
|
2021-04-01 09:29:58 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generic_handler:
|
2022-04-25 14:17:05 +08:00
|
|
|
name: 自动创建 PR
|
2021-04-01 09:29:58 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-04-25 14:17:05 +08:00
|
|
|
- name: Create pull request
|
2021-04-01 09:29:58 +08:00
|
|
|
uses: jumpserver/action-generic-handler@master
|
|
|
|
env:
|
2022-04-13 16:54:47 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-ecosystem/action-add-labels@v1
|
|
|
|
with:
|
|
|
|
labels: ${{ github.base_ref }}
|