31 lines
975 B
YAML
31 lines
975 B
YAML
name: scrape calendar
|
|
|
|
on:
|
|
schedule:
|
|
- cron: 0 15 * * 0
|
|
|
|
env:
|
|
DTC_TOKEN: ${{ secrets.POOLTOKEN }}
|
|
|
|
jobs:
|
|
scrape-and-upload:
|
|
name: Scrape funding information and upload records to pool
|
|
runs-on: debian-latest
|
|
steps:
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.name ${{ forgejo.actor }}
|
|
git config --global user.email ${{ forgejo.actor }}@${{ forgejo.server.url }}
|
|
git config --global credential.helper 'store --file ~/.git-credentials'
|
|
git credential approve <<EOF
|
|
url=${{ forgejo.server_url }}
|
|
username=${{ forgejo.actor }}
|
|
password=${{ forgejo.token }}
|
|
EOF
|
|
echo OK
|
|
- name: Fetch and run script
|
|
run: |
|
|
wget https://hub.psychoinformatics.de/orinoco/knowledge-enrichment/raw/branch/main/.forgejo/tools/scrape-calendar.py
|
|
uv run scrape-calendar.py
|