mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
fix: workflow
This commit is contained in:
parent
6a3456f4b0
commit
df927d0b7f
23
.github/workflows/pull.yml
vendored
23
.github/workflows/pull.yml
vendored
@ -9,25 +9,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:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- name: Autoclose issues that did not follow issue template
|
||||||
- uses: actions/checkout@v2
|
uses: roots/issue-closer@v1.1
|
||||||
|
|
||||||
- name: Setup GitHub CLI
|
|
||||||
uses: cli/cli@latest
|
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
pr-close-message: "This PR was automatically closed."
|
||||||
# Runs a single command using the runners shell
|
pr-pattern: "^(?!Update main.go).*$"
|
||||||
- name: Get PR commit message
|
|
||||||
id: pr
|
|
||||||
run: echo "::set-output name=message::$(git log --format=%B -n 1)"
|
|
||||||
|
|
||||||
# Runs a set of commands using the runners shell
|
|
||||||
- name: Close PR if commit message is "Update main.go"
|
|
||||||
if: steps.pr.outputs.message == 'Update main.go'
|
|
||||||
run: |
|
|
||||||
echo "Closing this PR because commit message is 'Update main.go'"
|
|
||||||
gh pr close ${{ github.event.pull_request.number }} --delete-branch
|
|
||||||
|
|
||||||
golangci:
|
golangci:
|
||||||
name: lint
|
name: lint
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user