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
1456bed668
commit
cc39d0fdb4
7
.github/workflows/pull.yml
vendored
7
.github/workflows/pull.yml
vendored
@ -14,7 +14,11 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- name: Checkout PR
|
- name: Checkout PR
|
||||||
run: gh pr checkout ${{ github.event.pull_request.number }}
|
run: |
|
||||||
|
gh version
|
||||||
|
gh repo clone ${{ github.event.repository.html_url }} zbp
|
||||||
|
cd zbp
|
||||||
|
gh pr checkout ${{ github.event.pull_request.number }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
@ -22,6 +26,7 @@ jobs:
|
|||||||
if: github.event.pull_request.title == 'Update main.go'
|
if: github.event.pull_request.title == 'Update main.go'
|
||||||
run: |
|
run: |
|
||||||
echo "Closing this PR because commit message is 'Update main.go'"
|
echo "Closing this PR because commit message is 'Update main.go'"
|
||||||
|
cd zbp
|
||||||
gh pr close ${{ github.event.pull_request.number }} --delete-branch
|
gh pr close ${{ github.event.pull_request.number }} --delete-branch
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user