2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

chore: 优化编译注入

This commit is contained in:
耗子
2024-12-02 23:18:16 +08:00
parent f66ce68e36
commit 1fee3632fc
5 changed files with 42 additions and 30 deletions

View File

@@ -40,10 +40,9 @@ jobs:
id: build_info
run: |
echo "version=$(git describe --tags --abbrev=0 2>/dev/null || echo '0.0.0')" >> $GITHUB_OUTPUT
echo "build_time=$(date -u '+%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
echo "build_time=$(date -u '+%F %T UTC')" >> $GITHUB_OUTPUT
echo "commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
echo "go_version=$(go version | cut -d' ' -f3)" >> $GITHUB_OUTPUT
echo "platform=$(go version | cut -d' ' -f4)" >> $GITHUB_OUTPUT
echo "build_user=$(whoami)" >> $GITHUB_OUTPUT
echo "build_host=$(hostname)" >> $GITHUB_OUTPUT
echo "build_id=${{ github.run_id }}" >> $GITHUB_OUTPUT