From c1adcfaf490ec0592bb60e8bbb54a51bb64260cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9C=A7=E9=9B=A8=E3=83=90=E3=83=8B=E3=83=A9?= <118162831+KirisameVanilla@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:21:07 +0800 Subject: [PATCH] ci: auto update deps (#16) * ci: deps auto update * fix --- .github/workflows/deps_auto_update.yml | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/deps_auto_update.yml diff --git a/.github/workflows/deps_auto_update.yml b/.github/workflows/deps_auto_update.yml new file mode 100644 index 0000000..ef811f3 --- /dev/null +++ b/.github/workflows/deps_auto_update.yml @@ -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: | + . \ No newline at end of file