diff --git a/.github/workflows/sync-files2.yml b/.github/workflows/sync-files2.yml new file mode 100644 index 0000000..802d024 --- /dev/null +++ b/.github/workflows/sync-files2.yml @@ -0,0 +1,38 @@ +name: Sync Files2 + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: 55 15 * * * + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: 准备完成 + uses: actions/checkout@main + + - name: 下载架构编译配置文件 + run: | + mkdir -p ./files + cp -f $GITHUB_WORKSPACE/file/* ./files + + - name: 同步配置 + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.ACCESS_TOKEN }} + publish_branch: main + publish_dir: ./ + user_name: 'GitHub Action' + user_email: 'github-actions[bot]@github.com' + exclude_assets: '' + keep_files: true + commit_message: "Sync files" + + - name: 删除运行记录 + uses: xiaomeng9597/delete-workflow-runs@main + with: + retain_days: 1 + keep_minimum_runs: 1 + token: ${{ secrets.ACCESS_TOKEN }}