ci(blocking_pr): pass json expressions as env not direct.

use internal compost comment action

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2025-03-12 19:11:21 -07:00
parent eb11cde0f4
commit 14f042540c
3 changed files with 172 additions and 14 deletions

View File

@@ -67,6 +67,7 @@ jobs:
if: fromJSON(steps.gather_deps.outputs.numdeps) > 0
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEPS: ${{ steps.gather_deps.outputs.deps }}
run: |
while read -r pr ; do
gh api \
@@ -76,5 +77,5 @@ jobs:
"/repos/${{ github.repository }}/actions/workflows/blocked_prs.yml/dispatches" \
-f "ref=${{ github.ref_name }}" \
-f "inputs[pr_id]=$pr"
done < <(jq -c '.[].number' <<< "${{steps.gather_deps.outputs.deps}}")
done < <(jq -c '.[].number' <<< "$DEPS")