Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/sync-mycobank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Sync MycoBank
on:
workflow_dispatch: {}
schedule:
- cron: "0 3 1 * *"
- cron: "0 4 1 * *"

permissions:
contents: read
Expand All @@ -17,6 +17,7 @@ jobs:
runs-on: self-hosted
container:
image: python:3.12-slim
options: --user 1000:1000
timeout-minutes: 30
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
Expand All @@ -31,7 +32,8 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip uv
uv sync --frozen --no-dev
pip install --user uv
~/.local/bin/uv sync --frozen --no-dev

- name: Run sync script
run: uv run python scripts/sync_mycobank.py
run: ~/.local/bin/uv run python scripts/sync_mycobank.py
2 changes: 1 addition & 1 deletion scripts/sync_mycobank.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def main():

_log("=== Coleta do MBList ===")
_log("Baixando e lendo MBList")
df, xlsx_path = download_and_read_mblist_filtered(mb_ids=mb_ids)
df, xlsx_path = download_and_read_mblist_filtered(mb_ids=mb_ids, pasta_base="/tmp/lumm")
_log(f"XLSX utilizado: {xlsx_path}", "OK")

inserted = 0
Expand Down
Loading