From 2ca4e1b7e7a8291a7b7b52f3c4793508bd9e180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=90=E8=AF=9D?= <49544781+xiaomeng9597@users.noreply.github.com> Date: Tue, 2 Apr 2024 20:58:10 +0800 Subject: [PATCH] add sync-files.yml --- .github/workflows/sync-files.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/sync-files.yml diff --git a/.github/workflows/sync-files.yml b/.github/workflows/sync-files.yml new file mode 100644 index 0000000..fd45de0 --- /dev/null +++ b/.github/workflows/sync-files.yml @@ -0,0 +1,39 @@ +name: Sync Files + +on: + repository_dispatch: + workflow_dispatch: + schedule: + - cron: 55 15 * * * + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: 准备完成 + uses: actions/checkout@v2 + + - name: 下载架构编译配置文件 + run: | + mkdir -p ./rk35xx + wget -O ./rk35xx/feeds.conf https://fw0.koolcenter.com/iStoreOS/station-p2/feeds.conf --no-check-certificate + # wget -O ./rk35xx/.config https://fw0.koolcenter.com/iStoreOS/station-p2/config.buildinfo --no-check-certificate + + - 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: GitRML/delete-workflow-runs@main + with: + retain_days: 1 + keep_minimum_runs: 1 + token: ${{ secrets.ACCESS_TOKEN }}