ci: auto update deps (#16)

* ci: deps auto update

* fix
This commit is contained in:
霧雨バニラ 2025-09-10 10:21:07 +08:00 committed by GitHub
parent 2695fb6aff
commit c1adcfaf49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 50 additions and 0 deletions

50
.github/workflows/deps_auto_update.yml vendored Normal file
View File

@ -0,0 +1,50 @@
name: Deps Auto Update
on:
schedule:
- cron: '0 23 * * *' # UTC 23:00 → 北京 07:00
workflow_dispatch:
jobs:
deps_auto_update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: 🔁 Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: 📦 Setup Node.js 22.14.0
uses: actions/setup-node@v4
with:
node-version: '22.14.0'
cache: 'npm'
- name: 💾 Install dependencies
run: npm ci
- name: 🚀 Run update script
run: npm run docs:update-package
- name: 🔄 Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
author: ${{ vars.ACTION_BOT_NAME }} <${{ vars.ACTION_BOT_EMAIL }}>
delete-branch: true
assignees: KirisameVanilla
commit-message: 'chore(deps): auto-update deps'
title: 'chore(deps): auto-update deps'
body: |
This PR was automatically created by GitHub Actions to update dependencies.
📅 Scheduled daily update.
branch: auto-update/${{ github.run_id }}
base: main
labels: deps
add-paths: |
.