24 lines
621 B
YAML
24 lines
621 B
YAML
on:
|
|
schedule:
|
|
- cron: '1 1 * * *' # every day at 1:01am
|
|
|
|
# on: [push]
|
|
|
|
jobs:
|
|
update_database:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: All tools we need
|
|
run: apt update && apt install -y default-jre git php php-dom php-curl php-sqlite3
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: run crawler
|
|
run: |
|
|
cd crawler
|
|
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
|
|
|