Created
November 14, 2024 10:18
-
-
Save fishyer/900182d3b57e63b7bde713d758d686ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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