Skip to content

chore: update

chore: update #21

Workflow file for this run

name: Daily
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
permissions:
contents: write
jobs:
update-dependencies:
name: Update Dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.2.23
- name: Run daily update script
run: bun daily.ts
- name: Configure Git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit and push changes
run: |
git add .
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "chore: update dependencies"
git push
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}