mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-18 20:50:12 +08:00
fix: workflow
This commit is contained in:
parent
e776d02d98
commit
5e41c15d88
17
.github/workflows/pull.yml
vendored
17
.github/workflows/pull.yml
vendored
@ -10,24 +10,11 @@ jobs:
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- name: Checkout PR
|
||||
run: |
|
||||
gh version
|
||||
gh repo clone ${{ github.event.repository.html_url }} zbp
|
||||
cd zbp
|
||||
gh pr checkout ${{ github.event.pull_request.number }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Close PR if commit message is "Update main.go"
|
||||
if: github.event.pull_request.title == 'Update main.go'
|
||||
run: |
|
||||
echo "Closing this PR because commit message is 'Update main.go'"
|
||||
cd zbp
|
||||
gh pr close ${{ github.event.pull_request.number }} --delete-branch
|
||||
uses: superbrothers/close-pull-request@v3
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
golangci:
|
||||
name: lint
|
||||
|
||||
Loading…
Reference in New Issue
Block a user