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: