Files
remote-to-github-mirror/.gitea/workflows/more-slots.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
1007 B
YAML

name: az-more-slots-sync-to-github
run-name:
on:
schedule:
- cron: '50 */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/az-more-slots.git
ls -lh
- name: az-more-slots
run: |
git clone https://github.com/Azurlane-HOI-mod/MoreSlots.git
ls -lh
cd MoreSlots
ls -lh
git checkout master
rm -rf src
rm -rf README
mv ../az-more-slots/src .
mv ../az-more-slots/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/MoreSlots.git
- name: cleanup
run: |
rm -rf az-more-slots
ls -lh