Skip to content

Commit

Permalink
webhook format
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Dec 26, 2024
1 parent e1cea15 commit 3c44cbd
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ jobs:
REPO_URL: ${{ github.event.repository.html_url }}
RELEASE_URL: ${{ github.event.release.html_url }}
run: |
curl -H "Content-Type: application/json" \
-d '{
"text": "🚀 A new release has been published!",
"sections": [{
"activityTitle": "**Release: [${RELEASE_NAME}](${RELEASE_URL})**",
"activitySubtitle": "Repository: [${REPO_NAME}](${REPO_URL})",
"text": "${RELEASE_BODY}",
"facts": [
{"name": "Tag", "value": "${RELEASE_TAG}"}
]
}]
}' \
curl -X POST -H "Content-Type: application/json" \
-d "{
\"text\": \"🚀 A new release has been published!\",
\"sections\": [{
\"activityTitle\": \"**Release: [${RELEASE_NAME}](${RELEASE_URL})**\",
\"activitySubtitle\": \"Repository: [${REPO_NAME}](${REPO_URL})\",
\"text\": \"${RELEASE_BODY}\",
\"facts\": [
{\"name\": \"Tag\", \"value\": \"${RELEASE_TAG}\"}
]
}]
}" \
$WEBHOOK_URL

0 comments on commit 3c44cbd

Please sign in to comment.