Skip to content

Commit

Permalink
Update send_notification.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kl3jvi authored Aug 23, 2023
1 parent fe44103 commit 18fa508
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/send_notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ jobs:
steps:
- name: Send Notification
run: |
curl -X POST "https://onesignal.com/api/v1/notifications" \
response=$(curl -X POST "https://onesignal.com/api/v1/notifications" \
-H "Authorization: Basic ${{ secrets.ONESIGNAL_API_KEY }}" \
-H "Content-Type: application/json" \
--data '{
"app_id": "${{ secrets.ONESIGNAL_APP_ID }}",
"included_segments": ["All"],
"headings": {"en": "New GitHub Release"},
"contents": {"en": "A new release has been published: ${{ github.event.release.name }}"},
"headings": {"en": "${{ github.event.release.name }}"},
"contents": {"en": "${{ github.event.release.body }}"},
"url": "${{ github.event.release.html_url }}"
}'
}')
echo "Response from OneSignal: $response"

0 comments on commit 18fa508

Please sign in to comment.