Skip to content

Commit cd85007

Browse files
committed
ci: 优化 AOP 仓库克隆逻辑,使用 git clone 并调整默认参数
1 parent 3dca8fe commit cd85007

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

actions/setup-flutter/action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ inputs:
2424
aop-repo:
2525
description: The URL of the AOP repository
2626
required: false
27-
default: TDesignOteam/tdesign-flutter-aop-registry
27+
default: 'https://github.com/TDesignOteam/tdesign-flutter-aop-registry.git'
2828
aop-repo-branch:
2929
description: The branch of the AOP repository
3030
required: false
@@ -45,14 +45,10 @@ runs:
4545
shell: bash
4646
run: |
4747
cd ${{ runner.temp }}
48+
branch="${ inputs.aop-repo-branch#refs/heads/ }"
49+
git clone ${{ inputs.aop-repo }} -b "$branch"
4850
git clone https://github.com/TDesignOteam/tdesign-flutter-generator.git
4951
50-
- uses: actions/checkout@v6.0.2
51-
with:
52-
repository: ${{ inputs.aop-repo }}
53-
ref: ${{ inputs.aop-repo-branch }}
54-
path: ${{ runner.temp }}
55-
5652
- name: Move aop_tools to ${{ inputs.aop-project-path }}
5753
if: ${{ inputs.aop-registry == 'true' }}
5854
shell: bash

0 commit comments

Comments
 (0)