fix(workflow): move scraper out of workflows dir, fix yml YAML block scalar

- .github/scripts/assert_workflow_dir_hygiene requires only .yml files in
  .github/workflows/; relocate monitor_databricks_pricing.py to scripts/
- Fix YAML ScannerError by turning the multi-line git commit -m block into
  a single line (YAML block scalar containment issue)
- update the run step path to scripts/monitor_databricks_pricing.py
This commit is contained in:
leecoder 2026-09-01 11:49:59 +09:00
parent cf4ca7ab13
commit 906cc70573
2 changed files with 3 additions and 7 deletions

View file

@ -27,7 +27,7 @@ jobs:
shell: bash
run: |
set -o pipefail
python .github/workflows/monitor_databricks_pricing.py | tee /tmp/monitor_out.txt
python scripts/monitor_databricks_pricing.py | tee /tmp/monitor_out.txt
if grep -q '^NO_CHANGE' /tmp/monitor_out.txt; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
@ -45,11 +45,7 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -b "$BRANCH"
git add model_prices_and_context_window.json litellm/model_prices_and_context_window_backup.json
git commit -m "chore(model_prices): refresh Databricks Foundation Model Serving rates
Automated daily monitor detected changed DBU rates on
https://www.databricks.com/product/pricing/foundation-model-serving
Updated entries: databricks/databricks-deepseek-v4-*"
git commit -m "chore(model_prices): refresh Databricks Foundation Model Serving rates - automated monitor detected changed DBU rates on the Databricks pricing page; updated databricks-deepseek-v4-* entries."
git push "https://x-access-token:${GITHUB_TOKEN_FOR_PUSH}@github.com/${GITHUB_REPOSITORY}.git" "$BRANCH"
gh pr create --repo "${{ github.repository }}" \
--base litellm_internal_staging \

View file

@ -21,7 +21,7 @@ import sys
import urllib.request
from pathlib import Path
REPO_ROOT = Path(__file__).resolve().parents[2]
REPO_ROOT = Path(__file__).resolve().parents[1]
MAIN_MAP = REPO_ROOT / "model_prices_and_context_window.json"
BACKUP_MAP = REPO_ROOT / "litellm" / "model_prices_and_context_window_backup.json"