From b50288555bf8c8e99e0505dd959bde285baf393d 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:36:59 +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 7d0d534..af7c3d4 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: ${{ !!secrets.head_ref }} + IS_PR: ${{ !!github.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: ${{ !secrets.head_ref }} + if: ${{ !github.head_ref }} with: name: ${{ matrix.goos }}_${{ matrix.goarch }} path: output/