From f3a9a7ee8af3346f60d839768fc9338077c20a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=8F=E5=88=97=E5=8F=B7?= <2402324010@qq.com> Date: Sun, 19 Mar 2023 18:28:40 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af7c3d4..7d0d534 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,7 @@ jobs: env: GOOS: ${{ matrix.goos }} GOARCH: ${{ matrix.goarch }} - IS_PR: ${{ !!github.head_ref }} + IS_PR: ${{ !!secrets.head_ref }} CGO_ENABLED: 0 run: | if [ $GOOS = "windows" ]; then export BINARY_SUFFIX="$BINARY_SUFFIX.exe"; fi @@ -55,7 +55,7 @@ jobs: go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" ./ - name: Upload artifact uses: actions/upload-artifact@v2 - if: ${{ !github.head_ref }} + if: ${{ !secrets.head_ref }} with: name: ${{ matrix.goos }}_${{ matrix.goarch }} path: output/