There was an error while loading. Please reload this page.
1 parent de1aded commit 19a845fCopy full SHA for 19a845f
1 file changed
.github/workflows/ci-cd.yml
@@ -103,9 +103,13 @@ jobs:
103
env:
104
GH_TOKEN: ${{ github.token }}
105
PR_NUMBER: ${{ github.event.pull_request.number }}
106
- PR_BODY: ${{ github.event.pull_request.body }}
107
run: |
108
set -euo pipefail
+ # 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
+ )
113
added=$(
114
gh api --paginate \
115
"repos/${{ github.repository }}/pulls/${PR_NUMBER}/files" \
0 commit comments