(blocked-pr): push json expansion into env (#3571)

This commit is contained in:
Rachel Powers 2025-04-01 23:53:34 -07:00 committed by GitHub
commit e883e9f359
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,9 +47,11 @@ jobs:
- name: Setup Environment
id: env_setup
env:
EVENT_PR_JSON: ${{ toJSON(github.event.pull_request) }}
run: |
# setup env for the rest of the workflow
PR_JSON=${PR_JSON:-'${{ toJSON(github.event.pull_request) }}'}
PR_JSON=${PR_JSON:-"$EVENT_PR_JSON"}
{
echo "REPO=$(jq -r '.base.repo.name' <<< "$PR_JSON")"
echo "OWNER=$(jq -r '.base.repo.owner.login' <<< "$PR_JSON")"