Skip to content

Commit

Permalink
fix: unify gen readme and make bentos
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Oct 31, 2024
1 parent ffd75a8 commit 3f97508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/make_bentos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,6 @@ jobs:
make
cd ..
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit and push changes
run: |
if [[ -n $(git status -s) ]]; then
git add bentoml/bentos/*
git commit -m "chore: make bentos"
git push origin nightly
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
generate-readme:
needs: make-bentos
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -74,9 +45,9 @@ jobs:
- name: Commit and push changes
run: |
if [[ -n $(git status -s) ]]; then
git add README.md
git commit -m "Update README.md"
git push
git add bentoml/bentos/*
git commit -m "chore: make bentos"
git push origin nightly
else
echo "No changes to commit"
fi
Expand Down
2 changes: 0 additions & 2 deletions gen_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import sys


subprocess.check_call([sys.executable, "-m", "openllm", "repo", "remove", "default"])
subprocess.check_call([sys.executable, "-m", "openllm", "repo", "update"])
model_list = subprocess.check_output(
[sys.executable, "-m", "openllm", "model", "list"],
env={"OPENLLM_TEST_REPO": "."},
Expand Down

0 comments on commit 3f97508

Please sign in to comment.