[update] update github actions
This commit is contained in:
10
.github/workflows/update-dependencies.yml
vendored
10
.github/workflows/update-dependencies.yml
vendored
@@ -19,8 +19,10 @@ jobs:
|
|||||||
node-version: "20.10.0"
|
node-version: "20.10.0"
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install pnpm
|
- name: Setup pnpm
|
||||||
run: npm install -g pnpm
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 9.7.0
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
@@ -32,8 +34,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global user.name 'github-actions[bot]'
|
git config --global user.name 'github-actions[bot]'
|
||||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
git add .
|
git diff --quiet || (git add . && git commit -m '[update]: update dependencies' && git push)
|
||||||
git commit -m 'chore: update dependencies'
|
|
||||||
git push
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user