1
This commit is contained in:
36
.gitea/workflows/sync.yml
Normal file
36
.gitea/workflows/sync.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: sync
|
||||||
|
run-name:
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '45 */4 * * *'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: steam-runner
|
||||||
|
steps:
|
||||||
|
- name: Clone repository
|
||||||
|
run: |
|
||||||
|
ls -lh
|
||||||
|
rm -rf az-more-slots
|
||||||
|
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 3014768049 +quit
|
||||||
|
- name: clean src and copy to src
|
||||||
|
run: |
|
||||||
|
ls -lh
|
||||||
|
cd az-more-slots
|
||||||
|
rm -rf src
|
||||||
|
ls -lh
|
||||||
|
cp -r /home/steam/Steam/steamapps/workshop/content/394360/3014768049 src
|
||||||
|
- name: commit and push
|
||||||
|
run: |
|
||||||
|
ls -lh
|
||||||
|
cd az-more-slots
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user