Skip to content

Commit c5fc6f8

Browse files
authored
Merge pull request #12 from amitpjoshiem/Task-1
remove set-output
2 parents 8f17409 + dca3053 commit c5fc6f8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ jobs:
2121
BODY=$(echo "$PR_JSON" | jq -r .body)
2222
USER=$(echo "$PR_JSON" | jq -r .user.login)
2323
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
2828
2929
# Additional steps to extract, format, and append release notes
3030
# (e.g., using scripts or other actions)
3131

3232
- name: Commit release notes
3333
run: |
3434
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 }}"
3939
4040
# Add your logic to append the release notes to a file and commit changes

0 commit comments

Comments
 (0)