build: 使用不同的action处理push及pr
This commit is contained in:
parent
ef33aa45bf
commit
e2709ece6f
|
@ -0,0 +1,17 @@
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
name: MeterSphere 通用 PR 处理
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
generic_handler:
|
||||||
|
name: 为 PR 添加标签
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Add labels
|
||||||
|
uses: jumpserver/action-generic-handler@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions-ecosystem/action-add-labels@v1
|
||||||
|
with:
|
||||||
|
labels: ${{ github.base_ref }}
|
|
@ -1,13 +1,17 @@
|
||||||
on: [push, pull_request, release]
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'pr@**'
|
||||||
|
- 'repr@**'
|
||||||
|
|
||||||
name: MeterSphere pull request handler
|
name: 针对特定分支名自动创建 PR
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generic_handler:
|
generic_handler:
|
||||||
name: Generic handler for MeterSphere Repos
|
name: 自动创建 PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Add labels
|
- name: Create pull request
|
||||||
uses: jumpserver/action-generic-handler@master
|
uses: jumpserver/action-generic-handler@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
|
Loading…
Reference in New Issue