Skip to content

Commit 98a8d38

Browse files
authored
[infra] use env. var. to read github body comment (#6409)
1 parent e5b9a9a commit 98a8d38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ jobs:
198198
token: ${{ secrets[needs.automation.outputs.token-secret-name] }}
199199

200200
- name: Update release notes
201+
env:
202+
COMMENT_BODY: ${{ github.event.comment.body }}
201203
shell: pwsh
202204
run: |
203205
Import-Module .\build\scripts\prepare-release.psm1
@@ -207,6 +209,6 @@ jobs:
207209
-pullRequestNumber '${{ github.event.issue.number }}' `
208210
-botUserName '${{ needs.automation.outputs.username }}' `
209211
-commentUserName '${{ github.event.comment.user.login }}' `
210-
-commentBody '${{ github.event.comment.body }}' `
212+
-commentBody $Env:COMMENT_BODY `
211213
-gitUserName '${{ needs.automation.outputs.username }}' `
212214
-gitUserEmail '${{ needs.automation.outputs.email }}'

0 commit comments

Comments
 (0)