Created
November 14, 2024 09:24
-
-
Save fishyer/59988cf251fb645841bb318453019257 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 | |
echo "✅post-commit hook start at $(date)" | |
start_time=$(date +%s) | |
# 查看环境变量 | |
source .env | |
echo "👁️build_version: $build_version" | |
echo "👁️build_time: $build_time" | |
# 添加git tag | |
git tag -a $build_version -m "build_version: $build_version build_time: $build_time" | |
echo "🎉post-commit hook end at $(date) elapsed $(($(date +%s) - $start_time)) seconds" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment