Skip to content

Commit

Permalink
Fix closes-issues action (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsangmeister authored Apr 9, 2024
1 parent e302d7c commit 63ddf8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/close-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
}
}
variables: |
owner: ${{ github.event.repository.owner.name }}
repo: ${{ github.event.repository.name }}
owner: ${{ github.repository_owner }}
name: ${{ github.event.repository.name }}
number: ${{ github.event.pull_request.number }}
- name: Close issues
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: |
issue_data="$(echo "${{ steps.get-issues.outputs.data }}" | jq -r '.data.repository.pullRequest.closingIssuesReferences.nodes[] | [.number,.repository.nameWithOwner] | @tsv')"
echo "$issue_data" | while read number nameWithOwner; do
issue_data="$(echo '${{ steps.get-issues.outputs.data }}' | jq -r '.repository.pullRequest.closingIssuesReferences.nodes[] | [.number,.repository.nameWithOwner] | @tsv')"
echo "$issue_data" | grep -v "^$" | while read number nameWithOwner; do
gh issue close "$number" -r "$nameWithOwner"
done

0 comments on commit 63ddf8c

Please sign in to comment.