add: fix-python310 workflow
Downgrade New Runners to v0.2.6 / downgrade (push) Failing after 12m34s
Check New Server Env / check (push) Failing after 12m34s
Fix Python 3.10 on New Server / fix-python310 (push) Has been cancelled

This commit is contained in:
2026-07-13 18:59:06 +08:00
parent 6221e35d62
commit 5000805c8c
+33
View File
@@ -0,0 +1,33 @@
name: Fix Python 3.10 on New Server
on:
push:
branches:
- ops/downgrade-runners
paths:
- '.gitea/workflows/fix-python310.yml'
- 'scripts/fix_python310_and_port.py'
workflow_dispatch:
jobs:
fix-python310:
runs-on: runtime-builder:host
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare SSH key
run: |
mkdir -p /root/.ssh
echo "$SSH_PRIVATE_KEY" > /root/.ssh/new_server_ed25519
chmod 600 /root/.ssh/new_server_ed25519
# 测试连接
ssh -i /root/.ssh/new_server_ed25519 -o StrictHostKeyChecking=no root@172.30.18.199 "echo SSH连接成功"
env:
SSH_PRIVATE_KEY: ${{ secrets.NEW_SERVER_SSH_KEY }}
- name: Install Python 3.10 + Fix CMD Agent port
run: |
export NEW_SERVER=172.30.18.199
export SSH_KEY_PATH=/root/.ssh/new_server_ed25519
python3 scripts/fix_python310_and_port.py