Skip to content

Daily OP-Bento image Update #238

Daily OP-Bento image Update

Daily OP-Bento image Update #238

Workflow file for this run

name: Daily OP-Bento image Update
on:
schedule:
- cron: "0 0 * * *" # daily at 00:00 UTC
workflow_dispatch: {}
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: true
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run getNewBento script
run: |
bun getNewBento.ts
- name: Commit and push README if changed
run: |
if [ -n "$(git status --porcelain)" ]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "chore: update Bento image (daily)"
git push
echo "README updated and pushed."
else
echo "No changes to commit."
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}