optimize: workflow

This commit is contained in:
源文雨 2023-09-24 13:10:22 +09:00
parent ba7c6cb0a0
commit 0c55c743f7

View File

@ -12,12 +12,12 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Close PR if commit message is "Update main.go"
if: github.event.pull_request.title == 'Update main.go'
- name: Close PR if commit message contains "Update"
if: github.event.pull_request.title.includes('Update')
uses: superbrothers/close-pull-request@v3
with:
# Optional. Post a issue comment just before closing a pull request.
comment: "Invalid PR."
comment: "非法PR. 请`fork`后修改自己的仓库, 而不是向主仓库提交更改. 如果您确信您的PR是为了给主仓库新增功能或修复bug, 请更改默认PR标题."
golangci:
name: lint