Skip to content

Commit 8f6a7de

Browse files
committed
ci(package-lock.json): 每次提交前恢复该文件
1 parent fb2006d commit 8f6a7de

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/SyncDoc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ jobs:
8383
git config --global user.signingkey "${{ secrets.GPG_PRIVATE_ID }}"
8484
- name: 提交和推送更改
8585
run: |
86+
# 在github action中安装依赖有时候会修改[package-lock.json], 恢复下,不在commit中对无关文件进行修改.
87+
git restore package-lock.json
8688
git pull
8789
git add .
8890
COMMIT_MESSAGE="docs(sync): 🤖 同步"

0 commit comments

Comments
 (0)