Skip to content

Commit

Permalink
[ci] fix curl not found issue
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Dec 11, 2024
1 parent ea4ceae commit 7236eb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ jobs:
CHAT_ID=$( echo ${{ secrets.T1_BACKEND_REPORT_ENDPOINT_DATA }} | cut -d';' -f2 )
TOPIC_ID=$( echo ${{ secrets.T1_BACKEND_REPORT_ENDPOINT_DATA }} | cut -d';' -f3 )
# Send information first
curl -s -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" \
nix run nixpkgs#curl -- -s -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" \
-d "chat_id=$CHAT_ID" \
-d "message_thread_id=$TOPIC_ID" \
-d "text=$MESSAGE"
# Then the reports
curl -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMediaGroup" \
nix run nixpkgs#curl -- -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMediaGroup" \
-F "chat_id=$CHAT_ID" \
-F "message_thread_id=$TOPIC_ID" \
${DOCUMENTS[@]} \
Expand Down

0 comments on commit 7236eb1

Please sign in to comment.