diff --git a/.gitea/workflows/autoupdate.yml b/.gitea/workflows/autoupdate.yml index b17466d..c3e9646 100644 --- a/.gitea/workflows/autoupdate.yml +++ b/.gitea/workflows/autoupdate.yml @@ -1,6 +1,6 @@ -# on: -# schedule: -# - cron: '1 1 * * *' # every day at 1:01am +on: + schedule: + - cron: '1 1 * * *' # every day at 1:01am # on: [push] @@ -15,4 +15,10 @@ jobs: - name: run crawler run: | cd crawler - php crawler.php \ No newline at end of file + php crawler.php + git config --global user.email "gitea@haschek.at" + git config --global user.name "Gitea" + git add crawler/data.db + git commit -m "update database" + git push + \ No newline at end of file