Skip to content

Instantly share code, notes, and snippets.

@fishyer
Created November 14, 2024 10:18
Show Gist options
  • Save fishyer/900182d3b57e63b7bde713d758d686ae to your computer and use it in GitHub Desktop.
Save fishyer/900182d3b57e63b7bde713d758d686ae to your computer and use it in GitHub Desktop.
#!/bin/bash
source .env
source ./shell/logger.sh
log "✅post-push hook start at $(date)"
start_time=$(date +%s)
log "🎉post-push hook end at $(date) elapsed $(($(date +%s) - $start_time)) seconds"
# 发送微信消息给自己,通知部署完成
msg="Deploy-Success $build_version $build_time"
log "🚀send message to weixin: $msg"
msg_urlencode=$(echo "$msg" | jq -sRr @uri)
log "url encode: $msg_urlencode"
curl "https://fastapi.fishyer.com/send/qmail?msg=$msg_urlencode"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment