Skip to content

Commit

Permalink
fix: update release
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Feb 5, 2024
1 parent 886b0b7 commit be6805d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# ====================== post release ======================

- name: Get release notes
id: get_notes
run: |
RELEASE_NOTES=$(gh release view v${{ env.NEXT_VERSION }} --json body -q '.body')
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "${RELEASE_NOTES}"
EOF
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Webhook message
uses: joelwmale/webhook-action@master
Expand Down
3 changes: 2 additions & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
[
"@semantic-release/exec",
{
"verifyReleaseCmd": "echo \"NEXT_VERSION=${nextRelease.version}\" >> $GITHUB_ENV"
"verifyReleaseCmd": "echo \"NEXT_VERSION=${nextRelease.version}\" >> $GITHUB_ENV",
"successCmd": "echo -e \"RELEASE_NOTES<<EOF\n${nextRelease.notes}\nEOF\" >> $GITHUB_ENV"
}
]
]
Expand Down

0 comments on commit be6805d

Please sign in to comment.