Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Sep 20, 2023
1 parent 1456bed commit cc39d0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@ 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 }}

- 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
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit cc39d0f

Please sign in to comment.