Skip to content

Commit

Permalink
feat(cicd): announce deploys VIII
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 14, 2023
1 parent d4dd70e commit e473ff4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,21 @@ jobs:
steps:
- name: Announce deploy to Telegram
run: |
msg_text='${{ github.actor }} deployed: \n environment: production on https://fiesta.plus \n commit: ${{ github.event.commits[0].message }} \n changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}'
message="
${{ github.actor }} deployed:
environment: production on https://fiesta.plus
commit: ${{ github.event.commits[0].message }}
changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
"
curl -s \
-X POST \
'https://api.telegram.org/bot${{ secrets.ANNOUNCE_TELEGRAM_TOKEN }}/sendMessage' \
--data-urlencode "chat_id=${{ secrets.ANNOUNCE_TELEGRAM_CHAT }}" \
--data-urlencode "text=${msg_text}" \
--data-urlencode "text=${message}" \
--data-urlencode "reply_to_message_id=${{ secrets.ANNOUNCE_TELEGRAM_TOPIC }}" \
--data-urlencode "disable_notification=true"
--data-urlencode "silent=true"
--data-urlencode "no_webpage=true"
# - name: Announce deploy to Telegram
# uses: enflo/curl-action@master
Expand Down

0 comments on commit e473ff4

Please sign in to comment.