From cd338e5838c7947b35f7d85b883cc2eca527622b Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 16 Dec 2023 15:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.github/workflows/main.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shenjack <3695888@qq.com> --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4fee798 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +on: + schedule: + - cron: "0,20,40 * * * *" + workflow_dispatch: + +permissions: + contents: write + +jobs: + pull_remote: + name: mirror shenjack.top + runs-on: ubuntu-latest + steps: + - name: clone remote + shell: pwsh + run: | + git config --global user.email 3695888@qq.com + git config --global user.name shenjack-action + git clone --bare http://shenjack.top:5100/ARS/ars-tools.git + cd ars-tools.git + git remote add git https://github.com/shenjackyuanjie/ars-tools.git + git push git * --force + # git push --mirror https://github.com/shenjackyuanjie/ars-tools.git + \ No newline at end of file -- 2.45.2