From 0cd20b761692d8c050291faebc6437ce7b0093fb Mon Sep 17 00:00:00 2001 From: wyxfzgg <3132758001@qq.com> Date: Thu, 4 Jun 2026 11:01:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=8D=E7=94=A8=E5=B7=B2=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=9A=84=20gitlink=5Fcli=5Fci=20=E5=AF=86=E9=92=A5?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E4=BF=AE=E5=A4=8D=20SSH=20=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/build.yml | 4 +--- .devops/ci.yml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.devops/build.yml b/.devops/build.yml index 4015637c..0f40932a 100644 --- a/.devops/build.yml +++ b/.devops/build.yml @@ -16,8 +16,6 @@ workflow: name: git clone task: git_clone@1.2.9 input: - username: ((gitlink_cli.wyx_git_user)) - password: ((gitlink_cli.wyx_git_pass)) remote_url: '"https://gitlink.org.cn/jiangtx/gitlink-cli.git"' ref: '"refs/heads/master"' commit_id: '""' @@ -31,7 +29,7 @@ workflow: ssh_ip: '"121.41.212.97"' ssh_port: '"22"' ssh_user: '"root"' - ssh_pass: ((gitlink_cli.wyx_ssh_pass)) + ssh_pass: ((gitlink_cli_ci.ssh_pass)) ssh_cmd: >- "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && echo '>>> 编译二进制' && go build -o gitlink-cli . && echo '>>> 验证根命令' && ./gitlink-cli --help | head -20 && echo '>>> 验证 pm 模块(6条命令)' && ./gitlink-cli pm --help && echo '>>> 验证 wiki 模块(5条命令)' && ./gitlink-cli wiki --help && echo '>>> 验证 export 模块(3条命令)' && ./gitlink-cli export --help && echo '>>> 验证 alias 命令' && ./gitlink-cli alias --help && echo '>>> 验证 browse 命令' && ./gitlink-cli browse --help && echo '>>> 验证 status 命令' && ./gitlink-cli status && echo '✅ 所有命令验证通过'" needs: diff --git a/.devops/ci.yml b/.devops/ci.yml index 74e8fc3f..9c21bc27 100644 --- a/.devops/ci.yml +++ b/.devops/ci.yml @@ -16,8 +16,6 @@ workflow: name: git clone task: git_clone@1.2.9 input: - username: ((gitlink_cli.wyx_git_user)) - password: ((gitlink_cli.wyx_git_pass)) remote_url: '"https://gitlink.org.cn/jiangtx/gitlink-cli.git"' ref: '"refs/heads/master"' commit_id: '""' @@ -31,7 +29,7 @@ workflow: ssh_ip: '"121.41.212.97"' ssh_port: '"22"' ssh_user: '"root"' - ssh_pass: ((gitlink_cli.wyx_ssh_pass)) + ssh_pass: ((gitlink_cli_ci.ssh_pass)) ssh_cmd: >- "cd /root && rm -rf gitlink-cli && git clone --depth=1 -b master https://gitlink.org.cn/jiangtx/gitlink-cli.git && cd gitlink-cli && export PATH=$PATH:/usr/local/go/bin && export GOPROXY=https://goproxy.cn,direct && go version && echo '>>> 1. 编译检查' && go build ./... && echo '>>> 2. 静态分析' && go vet ./... && echo '>>> 3. 单元测试' && go test -race ./... && echo '>>> 4. 格式化检查' && output=$(gofmt -s -l .) && if [ -n \"$output\" ]; then echo '格式化检查失败:' && echo \"$output\" && exit 1; fi && echo '✅ 所有 CI 检查通过'" needs: