Skip to content

Commit d3f7f85

Browse files
committed
ci: 优化 AOP 仓库克隆逻辑,修复分支参数处理并规范 git clone 命令格式
1 parent cd85007 commit d3f7f85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

actions/setup-flutter/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ 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"
48+
branch="${{ inputs.aop-repo-branch }}"
49+
branch="${branch#refs/heads/}"
50+
git clone "${{ inputs.aop-repo }}" -b "$branch"
5051
git clone https://github.com/TDesignOteam/tdesign-flutter-generator.git
5152
5253
- name: Move aop_tools to ${{ inputs.aop-project-path }}

0 commit comments

Comments
 (0)