1
0
Fork 0

ci(sync): update sync workflow remote configuration

- add explicit `ssh-host` field to remote matrix entries for clarity
- update ssh-keyscan commands to use `ssh-host` instead of `name`
- rename remote identifiers in matrix from domain names to platform names
This commit is contained in:
pooneyy 2026-02-28 13:20:58 +08:00
parent 2792006d21
commit c59464a076
No known key found for this signature in database
1 changed files with 5 additions and 3 deletions

View File

@ -23,10 +23,12 @@ jobs:
fail-fast: false
matrix:
remote:
- name: codeberg.org
- name: Codeberg
ssh-host: codeberg.org
ssh-url: git@codeberg.org:pooneyy/1Panel-Appstore.git
https-url: https://codeberg.org/pooneyy/1Panel-Appstore
- name: gitea.com
- name: Gitea
ssh-host: gitea.com
ssh-url: git@gitea.com:pooneyy/1Panel-Appstore.git
https-url: https://gitea.com/pooneyy/1Panel-Appstore
@ -49,7 +51,7 @@ jobs:
- name: 添加目标主机的公钥
run: |
mkdir -p ~/.ssh
ssh-keyscan ${{ matrix.remote.name }} >> ~/.ssh/known_hosts
ssh-keyscan ${{ matrix.remote.ssh-host }} >> ~/.ssh/known_hosts
- name: 配置本地仓库
run: |