This commit is contained in:
azw
2024-06-26 20:03:04 +08:00
commit 428b3093a8
2 changed files with 32 additions and 0 deletions

View File

@@ -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

0
README Normal file
View File