This commit is contained in:
NianBroken
2024-03-06 16:04:22 +08:00 Unverified
parent 1c24f456b3
commit 2493fbb15f
+2 -2
View File
@@ -102,10 +102,10 @@ jobs:
- name: Restore local files with specified extensions and delete backup - name: Restore local files with specified extensions and delete backup
run: | run: |
# 从备份目录将指定后缀文件还原到当前目录及子目录中,然后删除备份目录 # 从备份目录将指定后缀文件还原到当前目录及子目录中,然后删除备份目录
mkdir -p backup
for EXT in $FILE_EXTENSIONS; do for EXT in $FILE_EXTENSIONS; do
rsync -av --include="*/" --include="*$EXT" --exclude="*" backup/ ./ find . -type f -name "*$EXT" -not -path "./backup/*" -exec rsync -avR {} backup/ \;
done done
rm -rf backup
- name: Force push changes to main branch - name: Force push changes to main branch
run: | run: |