From cc39d0fdb47404699db6153aaa21f23c215aab76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Wed, 20 Sep 2023 20:43:53 +0900 Subject: [PATCH] fix: workflow --- .github/workflows/pull.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index ce4851bb..68caa7b4 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -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 }}