diff --git a/.gitea/workflows/autoupdate.yml b/.gitea/workflows/autoupdate.yml new file mode 100644 index 0000000..7c286a7 --- /dev/null +++ b/.gitea/workflows/autoupdate.yml @@ -0,0 +1,18 @@ +# on: +# schedule: +# - cron: '1 1 * * *' # every day at 1:01am + +on: [push] + +jobs: + update_database: + runs-on: docker-alpine + steps: + - name: All tools we need + run: apk add --no-cache git curl jq openjdk21-jre php php-dom php-curl php-openssl php-sqlite3 + - name: Checkout + uses: actions/checkout@v4 + - name: run crawler + run: | + cd crawler + php crawler.php \ No newline at end of file