Skip to content

Commit

Permalink
fix: test notification action
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-Shen committed Oct 28, 2024
1 parent c040ef4 commit 8fed078
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,19 +189,33 @@ jobs:
NEXT_VERSION: ${{ env.NEXT_VERSION }}
PYPI_URL: ${{ env.PYPI_URL }}
run: |
curl -v POST $WEBHOOK_URL \
-H "Content-Type: application/json" \
-d '{
"msg_type": "interactive",
"card": {
"elements": [
{
"tag": "div",
"text": {
"tag": "lark_md",
"content": "'"${RELEASE_NOTES}${CHANGELOG}Check it out now \ud83d\udc49\ud83c\udffb [v${NEXT_VERSION}](${PYPI_URL})"'"
}
}
]
echo '{
"msg_type": "interactive",
"card": {
"elements": [
{
"tag": "div",
"text": {
"tag": "lark_md",
"content": "'"${RELEASE_NOTES}${CHANGELOG}Check it out now \ud83d\udc49\ud83c\udffb [v${NEXT_VERSION}](${PYPI_URL})"'"
}
}
}'
]
}
}'
# curl -v POST $WEBHOOK_URL \
# -H "Content-Type: application/json" \
# -d '{
# "msg_type": "interactive",
# "card": {
# "elements": [
# {
# "tag": "div",
# "text": {
# "tag": "lark_md",
# "content": "'"${RELEASE_NOTES}${CHANGELOG}Check it out now \ud83d\udc49\ud83c\udffb [v${NEXT_VERSION}](${PYPI_URL})"'"
# }
# }
# ]
# }
# }'

0 comments on commit 8fed078

Please sign in to comment.