From 4742e2a9f865f5ac71f80188671bbacf289dc3b7 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 12 Dec 2023 20:47:37 +0100 Subject: [PATCH] testing schedule --- .gitea/workflows/autoupdate.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/autoupdate.yml 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