mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
optimize: workflow
This commit is contained in:
parent
ba7c6cb0a0
commit
0c55c743f7
6
.github/workflows/pull.yml
vendored
6
.github/workflows/pull.yml
vendored
@ -12,12 +12,12 @@ jobs:
|
|||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
- name: Close PR if commit message is "Update main.go"
|
- name: Close PR if commit message contains "Update"
|
||||||
if: github.event.pull_request.title == 'Update main.go'
|
if: github.event.pull_request.title.includes('Update')
|
||||||
uses: superbrothers/close-pull-request@v3
|
uses: superbrothers/close-pull-request@v3
|
||||||
with:
|
with:
|
||||||
# Optional. Post a issue comment just before closing a pull request.
|
# Optional. Post a issue comment just before closing a pull request.
|
||||||
comment: "Invalid PR."
|
comment: "非法PR. 请`fork`后修改自己的仓库, 而不是向主仓库提交更改. 如果您确信您的PR是为了给主仓库新增功能或修复bug, 请更改默认PR标题."
|
||||||
|
|
||||||
golangci:
|
golangci:
|
||||||
name: lint
|
name: lint
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user