mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-16 15:35:52 -04:00
ci(blocked_prs): unnest array of blocking prs
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
14f042540c
commit
1c6ab1f054
10
.github/workflows/blocked_prs.yml
vendored
10
.github/workflows/blocked_prs.yml
vendored
@ -84,13 +84,11 @@ jobs:
|
|||||||
}
|
}
|
||||||
' <<< "$PR_JSON")"
|
' <<< "$PR_JSON")"
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
cat $GITHUB_ENV
|
|
||||||
|
|
||||||
|
|
||||||
- name: Find Blocked/Stacked PRs in body
|
- name: Find Blocked/Stacked PRs in body
|
||||||
id: pr_ids
|
id: pr_ids
|
||||||
run: |
|
run: |
|
||||||
PRS=$(
|
prs=$(
|
||||||
jq -c '
|
jq -c '
|
||||||
.prBody as $body
|
.prBody as $body
|
||||||
| (
|
| (
|
||||||
@ -101,7 +99,7 @@ jobs:
|
|||||||
"type": "Blocked on",
|
"type": "Blocked on",
|
||||||
"number": ( . | tonumber )
|
"number": ( . | tonumber )
|
||||||
})
|
})
|
||||||
) as $i ([]; . + [$i])
|
) as $i ([]; . + [$i[]])
|
||||||
) as $bprs
|
) as $bprs
|
||||||
| (
|
| (
|
||||||
$body |
|
$body |
|
||||||
@ -111,7 +109,7 @@ jobs:
|
|||||||
"type": "Stacked on",
|
"type": "Stacked on",
|
||||||
"number": ( . | tonumber )
|
"number": ( . | tonumber )
|
||||||
})
|
})
|
||||||
) as $i ([]; . + [$i])
|
) as $i ([]; . + [$i[]])
|
||||||
) as $sprs
|
) as $sprs
|
||||||
| ($bprs + $sprs) as $prs
|
| ($bprs + $sprs) as $prs
|
||||||
| {
|
| {
|
||||||
@ -120,7 +118,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
' <<< "$JOB_DATA"
|
' <<< "$JOB_DATA"
|
||||||
)
|
)
|
||||||
echo "prs=$PRS" >> "$GITHUB_OUTPUT"
|
echo "prs=$prs" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Collect Blocked PR Data
|
- name: Collect Blocked PR Data
|
||||||
id: blocking_data
|
id: blocking_data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user