Skip to content

Commit

Permalink
fix: escape brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Oct 3, 2023
1 parent 3168e2a commit 6aa1c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actions/telegram/announce/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ runs:
shell: bash
run: |
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"chat_id": "${{ inputs.chatId }}", "text": "New version [v${{ inputs.version }}](https://github.com/$GITHUB_REPOSITORY/releases/tag/v${{ inputs.version }}) released 🎉", "parse_mode": "${{ inputs.markdown }}", "message_thread_id": "${{ inputs.topicId }}"}' \
-H "Content-Type: application/json" \
-d "{\"chat_id\": \"${{ inputs.chatId }}\", \"text\": \"New version [v${{ inputs.version }}](https://github.com/$GITHUB_REPOSITORY/releases/tag/v${{ inputs.version }}) released 🎉\", \"parse_mode\": \"${{ inputs.markdown }}\", \"message_thread_id\": \"${{ inputs.topicId }}\"}" \
https://api.telegram.org/bot${{ inputs.token }}/sendMessage

0 comments on commit 6aa1c2a

Please sign in to comment.