From 62021d7903b927bfa08fd374869c4adb5585b000 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Thu, 9 May 2024 09:45:21 +0800 Subject: [PATCH] fix: BRANCH_NAME --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61d78702ded..e1165c4349f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Set branch name id: vars - run: echo "branch=${{ github.repository_owner == 'Guovin' && 'gd' || 'master' }}" >> $GITHUB_ENV + run: echo "BRANCH_NAME=${{ github.repository_owner == 'Guovin' && 'gd' || 'master' }}" >> $GITHUB_ENV - uses: actions/checkout@v3 with: - ref: ${{ steps.vars.outputs.branch }} + ref: ${{ env.BRANCH_NAME }} - name: Run with setup-python 3.11 uses: actions/setup-python@v4 with: