fix: workflow

This commit is contained in:
源文雨 2023-09-20 20:43:53 +09:00
parent 1456bed668
commit cc39d0fdb4

View File

@ -14,7 +14,11 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- 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:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -22,6 +26,7 @@ jobs:
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
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}