commit 428b3093a8b83ef58d93bf4456961c611fb99112 Author: azw Date: Wed Jun 26 20:03:04 2024 +0800 1 diff --git a/.gitea/workflows/sr-sync.yml b/.gitea/workflows/sr-sync.yml new file mode 100644 index 0000000..d1d0297 --- /dev/null +++ b/.gitea/workflows/sr-sync.yml @@ -0,0 +1,32 @@ +name: sr-sync-to-github +run-name: +on: + schedule: + - cron: '15 */5 * * *' + push: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: clone + run: | + git clone https://x-access-token:${GITHUB_TOKEN}@git.azw.net.cn/${GITHUB_REPOSITORY}.git + ls -lh + - name: sr + run: | + git config --local user.email Cheshire[bot]@users.noreply.github.com + git config --local user.name 柴郡[bot] + git clone https://github.com/Azurlane-HOI-mod/Azurlane-SR.git + ls -lh + cd Azurlane-SR + ls -lh + git checkout master + rm -rf src + cp ../azurlane-sr/src . + git add src + git commit -a -m "$(date '+%Y-%m-%d %H:%M:%S')" + git push https://x-access-token:${{ secrets.AZW_PHY_GITHUB_TOKEN }}@git.azw.net.cn/${GITHUB_REPOSITORY}.git + - name: cleanup + run: | + rm -rf azurlane-sr + ls -lh \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000..e69de29