From 2bd5c850ab3615b5903d91fd6e9f0111ef315241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Tue, 25 Jun 2024 14:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20Delete=20.github/workfl?= =?UTF-8?q?ows=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflows/check-dependency-updates.yml | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 .github/workflows/check-dependency-updates.yml diff --git a/.github/workflows/check-dependency-updates.yml b/.github/workflows/check-dependency-updates.yml deleted file mode 100644 index 3170657..0000000 --- a/.github/workflows/check-dependency-updates.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Check Dependency Updates - -on: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - update-dependencies: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: "20" - - - name: Install npm-check-updates - run: | - npm install -g npm-check-updates - - - name: Run npm-check-updates and update package.json - run: | - ncu -u - npm install - - - name: Check for changes - run: | - if [ -n "$(git status --porcelain)" ]; then - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add . - git commit -m 'chore: update dependencies' - git pull --rebase origin master - git push - else - echo "No changes to commit" - fi - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}