Skip to content

Commit 19a845f

Browse files
Fetch current body in CI check (aio-libs#12927)
1 parent de1aded commit 19a845f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ jobs:
103103
env:
104104
GH_TOKEN: ${{ github.token }}
105105
PR_NUMBER: ${{ github.event.pull_request.number }}
106-
PR_BODY: ${{ github.event.pull_request.body }}
107106
run: |
108107
set -euo pipefail
108+
# Fetch the body fresh: github.event.pull_request.body is frozen at
109+
# the webhook payload and stale on re-runs after a body edit.
110+
PR_BODY=$(
111+
gh api "repos/${{ github.repository }}/pulls/${PR_NUMBER}" --jq .body
112+
)
109113
added=$(
110114
gh api --paginate \
111115
"repos/${{ github.repository }}/pulls/${PR_NUMBER}/files" \

0 commit comments

Comments
 (0)