add: fix new server env workflow
Check New Server Env / check (push) Successful in 3s
Downgrade New Runners to v0.2.6 / downgrade (push) Successful in 19s

This commit is contained in:
2026-07-13 18:39:47 +08:00
parent 849ea35413
commit c3509e2ab1
+17
View File
@@ -0,0 +1,17 @@
name: Fix New Server Env (Node.js via CMD Agent)
on:
workflow_dispatch:
jobs:
fix:
runs-on: saas
steps:
- name: Fix new server env via CMD Agent
shell: sh
run: |
set -eu
curl -sL -H "Authorization: token ${GITHUB_TOKEN}" \
"${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/contents/scripts/fix_new_server_env.py?ref=ops/downgrade-runners" \
| python3 -c "import json,sys,base64; d=json.load(sys.stdin); open('/tmp/fix.py','w').write(base64.b64decode(d['content']).decode())"
python3 /tmp/fix.py