From 69ef043f490522afedfec4db0a83ea09ccc292e2 Mon Sep 17 00:00:00 2001 From: azw Date: Wed, 26 Jun 2024 19:12:20 +0800 Subject: [PATCH] 1 --- .gitea/workflows/sync.yml | 36 ++++++++++++++++++++++++++++++++++++ README | 0 2 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/sync.yml create mode 100644 README diff --git a/.gitea/workflows/sync.yml b/.gitea/workflows/sync.yml new file mode 100644 index 0000000..dc6445f --- /dev/null +++ b/.gitea/workflows/sync.yml @@ -0,0 +1,36 @@ +name: sync +run-name: +on: + schedule: + - cron: '20 */4 * * *' +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.sh +login ${{ secrets.STEAM_USERNAME }} ${{ secrets.STEAM_PASSWORD }} +workshop_download_item 394360 2249768662 +quit + - name: clean src and copy to src + run: | + ls -lh + cd azurlane-sr + rm -rf src + ls -lh + cp -r /home/steam/Steam/steamapps/workshop/content/394360/2249768662 src + - name: commit and push + run: | + ls -lh + cd azurlane-sr + ls -lh + 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