Skip to content

Commit

Permalink
chore: add nightly auto build
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Aug 2, 2024
1 parent 607207b commit 324e639
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/make_bentos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Make bentos

on:
push:
branches:
- nightly

permissions:
contents: write

jobs:
generate-readme:
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: Make bentos
run: |
python -m pip install --upgrade pip
cd src
pip install -r make_requirements.txt
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
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 324e639

Please sign in to comment.