add: fix new server env workflow
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user