This repository has been archived on 2023-12-29. You can view files and clone it, but cannot push or open issues or pull requests.
dogstats/.gitea/workflows/autoupdate.yml

24 lines
621 B
YAML
Raw Normal View History

2023-12-22 21:33:07 +01:00
on:
schedule:
- cron: '1 1 * * *' # every day at 1:01am
2023-12-12 20:47:37 +01:00
2023-12-12 22:27:49 +01:00
# on: [push]
2023-12-12 20:47:37 +01:00
jobs:
update_database:
2023-12-12 21:22:50 +01:00
runs-on: ubuntu-latest
2023-12-12 20:47:37 +01:00
steps:
- name: All tools we need
2023-12-12 21:36:06 +01:00
run: apt update && apt install -y default-jre git php php-dom php-curl php-sqlite3
2023-12-12 20:47:37 +01:00
- name: Checkout
uses: actions/checkout@v4
- name: run crawler
run: |
cd crawler
2023-12-22 21:33:07 +01:00
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