fix(ci): deploy-alerts 補 pyyaml 安裝步驟
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 1m35s
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 1m35s
Validate alerts YAML 步驟在 runner 的 python3 沒有 yaml 模組 加入 pip3 install pyyaml 前置確保環境就緒 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,10 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Validate alerts YAML
|
||||
run: python3 -c "import yaml; yaml.safe_load(open('ops/monitoring/alerts-unified.yml')); print('YAML OK')"
|
||||
# 2026-04-08 Claude Sonnet 4.6: pip install pyyaml 確保 runner 有此依賴
|
||||
run: |
|
||||
pip3 install -q pyyaml 2>/dev/null || pip install -q pyyaml
|
||||
python3 -c "import yaml; yaml.safe_load(open('ops/monitoring/alerts-unified.yml')); print('YAML OK')"
|
||||
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user