forked from phoenix/litellm-mirror
Merge pull request #5297 from mikstew/mikio/fix-latest-tag
Fix helm chart job
This commit is contained in:
commit
fb7ff4b031
2 changed files with 1 additions and 29 deletions
|
@ -1,28 +0,0 @@
|
||||||
name: Updates model_prices_and_context_window.json and Create Pull Request
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * 0" # Run every Sundays at midnight
|
|
||||||
#- cron: "0 0 * * *" # Run daily at midnight
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
auto_update_price_and_context_window:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
|
||||||
pip install aiohttp
|
|
||||||
- name: Update JSON Data
|
|
||||||
run: |
|
|
||||||
python ".github/workflows/auto_update_price_and_context_window_file.py"
|
|
||||||
- name: Create Pull Request
|
|
||||||
run: |
|
|
||||||
git add model_prices_and_context_window.json
|
|
||||||
git commit -m "Update model_prices_and_context_window.json file: $(date +'%Y-%m-%d')"
|
|
||||||
gh pr create --title "Update model_prices_and_context_window.json file" \
|
|
||||||
--body "Automated update for model_prices_and_context_window.json" \
|
|
||||||
--head auto-update-price-and-context-window-$(date +'%Y-%m-%d') \
|
|
||||||
--base main
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
2
.github/workflows/ghcr_deploy.yml
vendored
2
.github/workflows/ghcr_deploy.yml
vendored
|
@ -201,7 +201,7 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.commit_hash }}
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue