@@ -21,20 +21,20 @@ jobs:
21
21
BODY=$(echo "$PR_JSON" | jq -r .body)
22
22
USER=$(echo "$PR_JSON" | jq -r .user.login)
23
23
LABELS=$(echo "$PR_JSON" | jq -r '.labels | map(.name) | join(", ")')
24
- echo "::set-output name=title::$ TITLE"
25
- echo "::set-output name=body::$ BODY"
26
- echo "::set-output name=user::$ USER"
27
- echo "::set-output name=labels::$ LABELS"
24
+ echo "TITLE=${ TITLE}" >> $GITHUB_ENV
25
+ echo "BODY=${ BODY}" >> $GITHUB_ENV
26
+ echo "USER=${ USER}" >> $GITHUB_ENV
27
+ echo "LABELS=${ LABELS}" >> $GITHUB_ENV
28
28
29
29
# Additional steps to extract, format, and append release notes
30
30
# (e.g., using scripts or other actions)
31
31
32
32
- name : Commit release notes
33
33
run : |
34
34
echo "Release notes for PR ${{ github.event.pull_request.number }}:"
35
- echo "Title: ${{ steps.pr-info.outputs.title }}"
36
- echo "Body: ${{ steps.pr-info.outputs.body }}"
37
- echo "User: ${{ steps.pr-info.outputs.user }}"
38
- echo "Labels: ${{ steps.pr-info.outputs.labels }}"
35
+ echo "Title: ${{ env.TITLE }}"
36
+ echo "Body: ${{ env.BODY }}"
37
+ echo "User: ${{ env.USER }}"
38
+ echo "Labels: ${{ env.LABELS }}"
39
39
40
40
# Add your logic to append the release notes to a file and commit changes
0 commit comments