ci: deps auto update

This commit is contained in:
KirisameVanilla 2025-09-10 09:57:35 +08:00
parent f23555ac0a
commit d0fb7786a8
No known key found for this signature in database
GPG Key ID: A68EE6C617D68238
1 changed files with 46 additions and 0 deletions

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

@ -0,0 +1,46 @@
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
- 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 }}
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: automated, dependencies
add-paths: |
.
draft: false