From 59d0817376e490c335930aadee7d286b434e9565 Mon Sep 17 00:00:00 2001 From: azw Date: Wed, 26 Jun 2024 21:05:11 +0800 Subject: [PATCH] 1 --- .gitea/workflows/more-slots.yml | 33 +++++++++++++++++++++++++++++++++ .gitea/workflows/sr-sync.yml | 3 +-- .gitea/workflows/tj-sync.yml | 33 +++++++++++++++++++++++++++++++++ .gitea/workflows/vnr-patch.yml | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 100 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/more-slots.yml create mode 100644 .gitea/workflows/tj-sync.yml create mode 100644 .gitea/workflows/vnr-patch.yml diff --git a/.gitea/workflows/more-slots.yml b/.gitea/workflows/more-slots.yml new file mode 100644 index 0000000..b7a25f1 --- /dev/null +++ b/.gitea/workflows/more-slots.yml @@ -0,0 +1,33 @@ +name: az-more-slots-sync-to-github +run-name: +on: + schedule: + - cron: '50 */3 * * *' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: clone + run: | + git clone https://x-access-token:${{ secrets.ACCESS_TOKEN }}@git.azw.net.cn/azurlane-hoi4/az-more-slots.git + ls -lh + - name: az-more-slots + run: | + git clone https://github.com/Azurlane-HOI-mod/MoreSlots.git + ls -lh + cd MoreSlots + ls -lh + git checkout master + rm -rf src + rm -rf README + mv ../az-more-slots/src . + mv ../az-more-slots/README . + git config --local user.email Cheshire[bot]@users.noreply.github.com + git config --local user.name 柴郡[bot] + git add . + git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')" + git push https://x-access-token:${{ secrets.AZW_PHY_GITHUB_TOKEN }}@github.com/Azurlane-HOI-mod/MoreSlots.git + - name: cleanup + run: | + rm -rf az-more-slots + ls -lh \ No newline at end of file diff --git a/.gitea/workflows/sr-sync.yml b/.gitea/workflows/sr-sync.yml index b01ad52..ff05f3f 100644 --- a/.gitea/workflows/sr-sync.yml +++ b/.gitea/workflows/sr-sync.yml @@ -2,8 +2,7 @@ name: sr-sync-to-github run-name: on: schedule: - - cron: '0 */3 * * *' - push: + - cron: '35 */3 * * *' jobs: build: runs-on: ubuntu-latest diff --git a/.gitea/workflows/tj-sync.yml b/.gitea/workflows/tj-sync.yml new file mode 100644 index 0000000..ff9d84a --- /dev/null +++ b/.gitea/workflows/tj-sync.yml @@ -0,0 +1,33 @@ +name: tj-sync-to-github +run-name: +on: + schedule: + - cron: '5 */3 * * *' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: clone + run: | + git clone https://x-access-token:${{ secrets.ACCESS_TOKEN }}@git.azw.net.cn/azurlane-hoi4/azurlane-tj.git + ls -lh + - name: tj + run: | + git clone https://github.com/Azurlane-HOI-mod/Azurlane-TJ.git + ls -lh + cd Azurlane-TJ + ls -lh + git checkout master + rm -rf src + rm -rf README + mv ../azurlane-tj/src . + mv ../azurlane-tj/README . + git config --local user.email Cheshire[bot]@users.noreply.github.com + git config --local user.name 柴郡[bot] + git add . + git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')" + git push https://x-access-token:${{ secrets.AZW_PHY_GITHUB_TOKEN }}@github.com/Azurlane-HOI-mod/Azurlane-TJ.git + - name: cleanup + run: | + rm -rf azurlane-tj + ls -lh \ No newline at end of file diff --git a/.gitea/workflows/vnr-patch.yml b/.gitea/workflows/vnr-patch.yml new file mode 100644 index 0000000..c73a1a6 --- /dev/null +++ b/.gitea/workflows/vnr-patch.yml @@ -0,0 +1,33 @@ +name: az-vnr-patch-sync-to-github +run-name: +on: + schedule: + - cron: '20 */3 * * *' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: clone + run: | + git clone https://x-access-token:${{ secrets.ACCESS_TOKEN }}@git.azw.net.cn/azurlane-hoi4/az-vnr-patch.git + ls -lh + - name: az-vnr-patch + run: | + git clone https://github.com/Azurlane-HOI-mod/VNR-Patch.git + ls -lh + cd VNR-Patch + ls -lh + git checkout master + rm -rf src + rm -rf README + mv ../az-vnr-patch/src . + mv ../az-vnr-patch/README . + git config --local user.email Cheshire[bot]@users.noreply.github.com + git config --local user.name 柴郡[bot] + git add . + git commit --allow-empty -m "$(date '+%Y-%m-%d %H:%M:%S')" + git push https://x-access-token:${{ secrets.AZW_PHY_GITHUB_TOKEN }}@github.com/Azurlane-HOI-mod/VNR-Patch.git + - name: cleanup + run: | + rm -rf az-vnr-patch + ls -lh \ No newline at end of file