From 01981b4d966bb2251741531a8834f5bf5e23a321 Mon Sep 17 00:00:00 2001 From: johlanse Date: Sun, 21 Aug 2022 16:17:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4de8ae..a12e974 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: [push, pull_request] env: BINARY_PREFIX: "study_xxqg_" BINARY_SUFFIX: "" + COMMIT_ID: "${{ github.sha }}" PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request." LD_FLAGS: "-w -s" @@ -40,6 +41,7 @@ jobs: IS_PR: ${{ !!github.head_ref }} CGO_ENABLED: 0 run: | + echo $COMMIT_ID if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi if $IS_PR ; then echo $PR_PROMPT; fi export BINARY_NAME="$BINARY_PREFIX$GOOS_$GOARCH$BINARY_SUFFIX"