Skip to content

Commit

Permalink
Fix: Close issues アクションを必ず正常終了するように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Jun 28, 2022
1 parent 57e3134 commit 457ecc8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/close-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.number }}
steps:
- run: |
ISSUES=`gh pr view $PR_NUMBER --json body --jq .body |
grep -oP --ignore-case '(^|\W)((close|resolve)(|s|d)|fix(|es|ed)) #[\d]+(?=\W|$)' |
grep -oP '#[\d]+'`
echo $ISSUES | xargs -n1 gh issue close || true
- name: Close issues
run: |
gh pr view $PR_NUMBER --json body --jq .body |
grep -oP --ignore-case '(^|\W)((close|resolve)(|s|d)|fix(|es|ed)) #[\d]+(?=\W|$)' |
grep -oP '#[\d]+' |
xargs -n1 gh issue close || true

0 comments on commit 457ecc8

Please sign in to comment.