Skip to content

Commit 4547b9c

Browse files
committed
No need to format json if processing instantly
1 parent 50eaad7 commit 4547b9c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/coverage_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
id: get_pr_number
2424
env:
2525
SHA: "${{ github.event.workflow_run.head_sha }}"
26-
REPO: "${{github.repository}}"
26+
REPO: "${{ github.repository }}"
2727
run: |
2828
# Query GitHub API to find the PR number associated with the head commit SHA
29-
PR_DATA=$(curl -s "https://api.github.com/search/issues?q=repo:$REPO+type:pr+sha:$SHA" | jq -c '.')
29+
PR_DATA=$(curl -s "https://api.github.com/search/issues?q=repo:$REPO+type:pr+sha:$SHA")
3030
# Check if head commit is on a single PR else ambiguous which PR triggered the workflow
3131
ITEMS_COUNT=$(jq '.items | length' <<< "$PR_DATA")
3232
if [ "$ITEMS_COUNT" -ne 1 ]; then

0 commit comments

Comments
 (0)