Files
remote-to-github-mirror/.gitea/workflows/sr-sync.yml
azw 6265a1a91c
Some checks failed
tj-sync-to-github / build (push) Failing after 3s
az-vnr-patch-sync-to-github / build (push) Failing after 2s
sr-sync-to-github / build (push) Failing after 2s
az-more-slots-sync-to-github / build (push) Failing after 2s
1
2024-11-28 04:18:44 +08:00

33 lines
983 B
YAML

name: sr-sync-to-github
run-name:
on:
schedule:
- cron: '35 */3 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: clone
run: |
git clone https://x-access-token:${{ secrets.GITHUB_TOKEN }}@git.azw.net.cn/azurlane-hoi4/azurlane-sr.git
ls -lh
- name: sr
run: |
git clone https://github.com/Azurlane-HOI-mod/Azurlane-SR.git
ls -lh
cd Azurlane-SR
ls -lh
git checkout master
rm -rf src
rm -rf README
mv ../azurlane-sr/src .
mv ../azurlane-sr/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-SR.git
- name: cleanup
run: |
rm -rf azurlane-sr
ls -lh