commit 74623592b51bfd58a704f65b33661d63c8a1e04c Author: azw Date: Wed Jun 26 18:46:23 2024 +0800 1 diff --git a/.gitea/workflows/sync.yml b/.gitea/workflows/sync.yml new file mode 100644 index 0000000..33b12e4 --- /dev/null +++ b/.gitea/workflows/sync.yml @@ -0,0 +1,33 @@ +name: sync +run-name: +on: + schedule: + - cron: '0 */4 * * *' + push: +jobs: + build: + runs-on: steam-runner + steps: + - name: Clone repository + run: | + ls -lh + rm -rf azurlane-sr + git -c http.sslVerify=false clone -b main https://${{ secrets.ACCESS_TOKEN }}@${{ secrets.URI }}/${{ github.repository }}.git + - name: sync currect file + run: | + cd /home/steam/steamcmd + ls -lh + ./steamcmd +login ${{ secrets.STEAM_USERNAME }} ${{ secrets.STEAM_PASSWORD }} +workshop_download_item 394360 2131096629 +quit + - name: clean src and copy to src + run: | + ls -lh + rm -rf src + ls -lh + cp -r /home/steam/Steam/steamapps/workshop/content/394360/2131096629 src + - name: commit and push + run: | + git config --local user.email "actions[bot]@users.noreply.github.com" + git config --local user.name "actions[bot]" + git add . + git commit -a -m "$(date '+%Y-%m-%d %H:%M:%S')" + git -c http.sslVerify=false push https://${{ secrets.ACCESS_TOKEN }}@${{ secrets.URI }}/${{ github.repository }}.git \ No newline at end of file diff --git a/README b/README new file mode 100644 index 0000000..e69de29