Some checks failed
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / notebooks-smoke (push) Has been cancelled
Deploy / changes (push) Has been cancelled
Deploy / notebooks (push) Has been cancelled
Deploy / zotero (push) Has been cancelled
Deploy / docs (push) Has been cancelled
Deploy / api (push) Has been cancelled
Deploy / bcda (push) Has been cancelled
Deploy / llm (push) Has been cancelled
Deploy / mc (push) Has been cancelled
Deploy / report (push) Has been cancelled
A red renovate/* branch already stays unmerged and shows on Renovate's Dependency Dashboard; the auto-filer added an issue per failed job on top (ten from today's first Renovate batch, #1397–#1407). The failure step now skips branches named renovate/*, both as the push ref and as a PR head. Regenerated via gen_config.py; pkg-supply-chain.yml, which gen_config no longer emits, is edited the same way by hand.
65 lines
2.3 KiB
YAML
65 lines
2.3 KiB
YAML
# DO NOT EDIT — generated by gen_config.py from stack.toml
|
|
# Re-generate: uv run python dev/scripts/gen_config.py
|
|
|
|
name: Zotero Sync
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "15 4 * * *"
|
|
|
|
jobs:
|
|
zotero-sync:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
- name: Set up uv
|
|
run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
env:
|
|
UV_INSTALL_DIR: /usr/local/bin
|
|
|
|
- name: Stop zotero (release SQLite write lock)
|
|
run: docker stop zotero
|
|
|
|
- name: Sync mail-ingested bib items into Zotero
|
|
# --merge-dupes: listserv re-sends are now aliased at ingest
|
|
# (Task 3), and any same-URL twins that still land in Zotero are
|
|
# merged (union tags/collections/notes/attachments, keep-earliest)
|
|
# rather than deleted.
|
|
run: |
|
|
docker exec api uv run --no-sync \
|
|
stack bib sync-zotero --tag source:email --no-hold \
|
|
--merge-dupes
|
|
|
|
- name: Sync Federal Register rule items into Zotero
|
|
# Rule items only ever reached Zotero via one-off manual syncs
|
|
# (P36 step 5); P37 skipped that step and the CY2027 NPRM never
|
|
# arrived (#626/#627). Tag-scoped: a full unscoped sync would
|
|
# hydrate ~180k bib items.
|
|
run: |
|
|
docker exec api uv run --no-sync \
|
|
stack bib sync-zotero --tag source:federal-register --no-hold
|
|
|
|
- name: Restart zotero
|
|
if: always()
|
|
run: docker start zotero
|
|
|
|
- name: File failure issue
|
|
if: failure() && !startsWith(github.head_ref || github.ref_name, 'renovate/')
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
|
|
run: |
|
|
# Jobs that never install uv (image builds, infra checks) still
|
|
# need it here — otherwise the filer dies with "uv: command not
|
|
# found" and the failure is never filed.
|
|
command -v uv >/dev/null 2>&1 || curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
uv sync --no-dev --quiet 2>/dev/null || true
|
|
uv run python -m api.diag.ci \
|
|
--workflow "Zotero Sync" --job "zotero-sync" \
|
|
--run "${{ github.run_number }}" \
|
|
--sha "${{ github.sha }}" \
|
|
--ref "${{ github.ref }}" || true
|