From 1dc4e7d93e4821461841944cbf02fcfab3f790a1 Mon Sep 17 00:00:00 2001 From: NianBroken Date: Mon, 11 Mar 2024 13:33:13 +0800 Subject: [PATCH] add --- .github/workflows/main.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a431bf8..05cc35d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -71,16 +71,6 @@ jobs: "your code will have an uncontrollable fatal bug!" fi - - name: Backup files - run: | - mkdir -p Backup - find . -type f -name "*.txt" -exec cp --parents {} ./Backup \; - find . -type f -name "*.yml" -exec cp --parents {} ./Backup \; - - - name: Restore files - run: | - cp -r Backup/* . - - name: Force push changes to main branch run: | # 将更改强制推送到main分支 @@ -117,6 +107,16 @@ jobs: # 使用pip安装项目的依赖项 pip install requests rsa pyquery + - name: Backup files + run: | + mkdir -p Backup + find . -type f -name "*.txt" -exec cp --parents {} ./Backup \; + find . -type f -name "*.yml" -exec cp --parents {} ./Backup \; + + - name: Restore files + run: | + cp -r Backup/* . + - name: Run main program id: run_main_program env: