From f53e945b1bae0349dca45c4298c84b6885f8f2b3 Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:34:40 +1000 Subject: [PATCH 01/15] init the github action --- .github/workflows/push-to-gitee.yaml | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/push-to-gitee.yaml diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml new file mode 100644 index 00000000..82c20cf3 --- /dev/null +++ b/.github/workflows/push-to-gitee.yaml @@ -0,0 +1,45 @@ +name: push-to-gitee + +on: [push] + +jobs: + build: + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v1 + - name: Init + run: | + git clone https://gitee.com/controlnet/wt-data-project.data.git + cp -r joined wt-data-project.data/joined + cp -r ts wt-data-project.data/ts + cp -r wk wt-data-project.data/wk + cp ab_ranks_0.csv wt-data-project.data + cp ab_ranks_1.csv wt-data-project.data + cp ab_ranks_all.csv wt-data-project.data + cp rb_ranks_0.csv wt-data-project.data + cp rb_ranks_1.csv wt-data-project.data + cp rb_ranks_all.csv wt-data-project.data + cp sb_ranks_0.csv wt-data-project.data + cp sb_ranks_1.csv wt-data-project.data + cp sb_ranks_all.csv wt-data-project.data + cp README.md wt-data-project.data + cp LICENSE wt-data-project.data + cp .gitignore wt-data-project.data + + - name: Push to gitee + env: + ACTION_DEPLOY_KEY: ${{ secrets.GITEE_PRIVATE }}\ + run: | + mkdir -p ~/.ssh/ + echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + git config --global user.email "smczx@hotmail.com" + git config --global user.name "ControlNet" + + cd wt-data-project.data + git add -A + git commit -m "update" + git push From 30d5a07fbc833b45dc813387911f484a3928d471 Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:37:30 +1000 Subject: [PATCH 02/15] use ssh --- .github/workflows/push-to-gitee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 82c20cf3..d31d72c9 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v1 - name: Init run: | - git clone https://gitee.com/controlnet/wt-data-project.data.git + git clone git@gitee.com:controlnet/wt-data-project.data.git cp -r joined wt-data-project.data/joined cp -r ts wt-data-project.data/ts cp -r wk wt-data-project.data/wk From 7f67738b9c8cfddbe340a8739fe301747115fe1f Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:44:14 +1000 Subject: [PATCH 03/15] fix --- .github/workflows/push-to-gitee.yaml | 30 ++++++++++++++++------------ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index d31d72c9..2172eb9a 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -9,9 +9,20 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Init + - name: Init git + run: | + mkdir -p ~/.ssh/ + echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan gitee.com >> ~/.ssh/known_hosts + git config --global user.email "smczx@hotmail.com" + git config --global user.name "ControlNet" + + - name: Clone from gitee + run: git clone git@gitee.com:controlnet/wt-data-project.data.git + + - name: Update the files run: | - git clone git@gitee.com:controlnet/wt-data-project.data.git cp -r joined wt-data-project.data/joined cp -r ts wt-data-project.data/ts cp -r wk wt-data-project.data/wk @@ -28,18 +39,11 @@ jobs: cp LICENSE wt-data-project.data cp .gitignore wt-data-project.data - - name: Push to gitee - env: - ACTION_DEPLOY_KEY: ${{ secrets.GITEE_PRIVATE }}\ + - name: Commit the changes run: | - mkdir -p ~/.ssh/ - echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan github.com >> ~/.ssh/known_hosts - git config --global user.email "smczx@hotmail.com" - git config --global user.name "ControlNet" - cd wt-data-project.data git add -A git commit -m "update" - git push + + - name: Push to gitee + run: git push From 918786404e3241a670be1c82e069a4979ecdfed8 Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:54:09 +1000 Subject: [PATCH 04/15] fix --- .github/workflows/push-to-gitee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 2172eb9a..042d6fc9 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -14,7 +14,7 @@ jobs: mkdir -p ~/.ssh/ echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-keyscan gitee.com >> ~/.ssh/known_hosts + ssh-add ~/.ssh/id_rsa git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From 2dac8020b544bd1bd073b5a914c13607632647dd Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:55:40 +1000 Subject: [PATCH 05/15] use ssh-agent --- .github/workflows/push-to-gitee.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 042d6fc9..61c51b17 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -14,6 +14,7 @@ jobs: mkdir -p ~/.ssh/ echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa + ssh-agent -s ssh-add ~/.ssh/id_rsa git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From 37c23bb91347cd6686bdc789c9baaee11a38b0ef Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 05:58:59 +1000 Subject: [PATCH 06/15] fix --- .github/workflows/push-to-gitee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 61c51b17..f08bc5a7 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -14,7 +14,7 @@ jobs: mkdir -p ~/.ssh/ echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - ssh-agent -s + eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From f235cb038c7aa45925efd4f1e39893700a8779bb Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 06:35:20 +1000 Subject: [PATCH 07/15] rename --- .github/workflows/push-to-gitee.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index f08bc5a7..4ddb2c05 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -12,10 +12,10 @@ jobs: - name: Init git run: | mkdir -p ~/.ssh/ - echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa + echo "$GITEE_PRIVATE" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 eval "$(ssh-agent)" - ssh-add ~/.ssh/id_rsa + ssh-add ~/.ssh/id_ed25519 git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From cf15d1094e42da7d24855fb8ee095e9e6ad9726d Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 06:44:23 +1000 Subject: [PATCH 08/15] rename --- .github/workflows/push-to-gitee.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 4ddb2c05..f08bc5a7 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -12,10 +12,10 @@ jobs: - name: Init git run: | mkdir -p ~/.ssh/ - echo "$GITEE_PRIVATE" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 + echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa eval "$(ssh-agent)" - ssh-add ~/.ssh/id_ed25519 + ssh-add ~/.ssh/id_rsa git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From 56c5d3b0d22fe1282ff1d80147559dabb1a2ea27 Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 06:57:56 +1000 Subject: [PATCH 09/15] fix --- .github/workflows/push-to-gitee.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index f08bc5a7..f44cad0f 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -10,9 +10,11 @@ jobs: steps: - uses: actions/checkout@v1 - name: Init git + env: + ACTION_DEPLOY_KEY: ${{ secrets.GITEE_PRIVATE }} run: | mkdir -p ~/.ssh/ - echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa + echo "$ACTION_DEPLOY_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa From 1196f4de43d5730113f09a7a038f6b8381078acd Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 07:07:02 +1000 Subject: [PATCH 10/15] fix --- .github/workflows/push-to-gitee.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index f44cad0f..52882b2e 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -11,13 +11,14 @@ jobs: - uses: actions/checkout@v1 - name: Init git env: - ACTION_DEPLOY_KEY: ${{ secrets.GITEE_PRIVATE }} + GITEE_PRIVATE: ${{ secrets.GITEE_PRIVATE }} run: | mkdir -p ~/.ssh/ - echo "$ACTION_DEPLOY_KEY" > ~/.ssh/id_rsa + echo "$GITEE_PRIVATE" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa + ssh-keyscan -H gitee.com >> ~/.ssh/known_hosts git config --global user.email "smczx@hotmail.com" git config --global user.name "ControlNet" From 6a5e1a6f5ee17c470385f35fe0789629426a839a Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 07:09:47 +1000 Subject: [PATCH 11/15] git push force --- .github/workflows/push-to-gitee.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 52882b2e..7b5b3266 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -50,4 +50,4 @@ jobs: git commit -m "update" - name: Push to gitee - run: git push + run: git push --force From 0483632cb8be89767eb92c29d0dbf7c2d77ea52d Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 07:11:41 +1000 Subject: [PATCH 12/15] fix --- .github/workflows/push-to-gitee.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 7b5b3266..792b1898 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -3,7 +3,7 @@ name: push-to-gitee on: [push] jobs: - build: + sync: runs-on: ubuntu-20.04 @@ -50,4 +50,4 @@ jobs: git commit -m "update" - name: Push to gitee - run: git push --force + run: git push origin HEAD:master --force From 3813625aba3d566ed62055fe04156c5b648ce75e Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 07:13:20 +1000 Subject: [PATCH 13/15] fix --- .github/workflows/push-to-gitee.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index 792b1898..fdfff208 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -43,11 +43,9 @@ jobs: cp LICENSE wt-data-project.data cp .gitignore wt-data-project.data - - name: Commit the changes + - name: Commit and Push run: | cd wt-data-project.data git add -A git commit -m "update" - - - name: Push to gitee - run: git push origin HEAD:master --force + git push origin HEAD:master --force From 5a9061596ef7e7748dcb3f79f9554b9b722fd47a Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 17:38:10 +1000 Subject: [PATCH 14/15] update README --- README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2cdee34..5b6e5cef 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,44 @@ # WT-DATA-PROJECT.DATA Data collected in wt-data-project. + + + + + + + + + + + + + + + + + +
RepositoryInfo
wt-data-project.data + + + + +
wt-data-project.web + + + + +
wt-data-project.visualization + + + +
+ ## Visualization -The visualization part is in this [repo](https://github.com/ControlNet/wt-data-project.visualization) +The visualization part is in this [webpage](https://wt.controlnet.space). + +## Gitee mirror +[https://gitee.com/controlnet/wt-data-project.data](https://gitee.com/controlnet/wt-data-project.data) ## Time-series RB battle ranks data File `rb_ranks_1.csv`: containing a time-series from 2019-11-22 until now, and grouped as battle rating ranges = 1.0. From d0bdfd17b2d7f187d688e3c8f44b954c996e9e49 Mon Sep 17 00:00:00 2001 From: ControlNet Date: Thu, 15 Jul 2021 17:42:27 +1000 Subject: [PATCH 15/15] fix sync bug --- .github/workflows/push-to-gitee.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push-to-gitee.yaml b/.github/workflows/push-to-gitee.yaml index fdfff208..99268de0 100644 --- a/.github/workflows/push-to-gitee.yaml +++ b/.github/workflows/push-to-gitee.yaml @@ -27,9 +27,9 @@ jobs: - name: Update the files run: | - cp -r joined wt-data-project.data/joined - cp -r ts wt-data-project.data/ts - cp -r wk wt-data-project.data/wk + cp joined/* wt-data-project.data/joined + cp ts/* wt-data-project.data/ts + cp wk/* wt-data-project.data/wk cp ab_ranks_0.csv wt-data-project.data cp ab_ranks_1.csv wt-data-project.data cp ab_ranks_all.csv wt-data-project.data