1
This commit is contained in:
32
.gitea/workflows/sr-sync.yml
Normal file
32
.gitea/workflows/sr-sync.yml
Normal 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
|
||||||
Reference in New Issue
Block a user