From 3690a4b82701dcf429ccfb97da8b950e536a468d Mon Sep 17 00:00:00 2001 From: PrinOrange Date: Fri, 13 Sep 2024 23:31:00 +0800 Subject: [PATCH] [update] update github actions --- .github/workflows/update-dependencies.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index e0bd59f..07f8f3e 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -19,8 +19,10 @@ jobs: node-version: "20.10.0" cache: "pnpm" - - name: Install pnpm - run: npm install -g pnpm + - name: Setup pnpm + uses: pnpm/action-setup@v2 + with: + version: 9.7.0 - name: Install dependencies run: pnpm install @@ -32,8 +34,6 @@ jobs: run: | 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 push + git diff --quiet || (git add . && git commit -m '[update]: update dependencies' && git push) env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}