add
This commit is contained in:
@@ -102,10 +102,10 @@ jobs:
|
||||
- name: Restore local files with specified extensions and delete backup
|
||||
run: |
|
||||
# 从备份目录将指定后缀文件还原到当前目录及子目录中,然后删除备份目录
|
||||
mkdir -p backup
|
||||
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
|
||||
rm -rf backup
|
||||
|
||||
- name: Force push changes to main branch
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user