Skip to content

Poll current Destin beach flag #478

Poll current Destin beach flag

Poll current Destin beach flag #478

name: Poll current Destin beach flag
on:
workflow_dispatch:
push:
branches: [main]
paths:
- '.github/workflows/poll-destin-flag.yml'
- '.github/recovery/destin.trigger'
- 'scripts/update_destin_current.py'
- 'scripts/collector_resilience.py'
- 'scripts/common.py'
- 'scripts/florida_flag_terms.py'
- 'scripts/apply_florida_flag_terms.py'
- 'scripts/apply_visitbeaches_confidence.py'
- 'data/visitbeaches/destin.json'
- 'tests/test_destin_flag_parser.py'
- 'tests/test_collector_resilience.py'
- 'tests/test_visitbeaches_confidence.py'
schedule:
- cron: '27,57 * * * *'
permissions:
contents: write
# Destin owns a separate current-condition heartbeat. It must never share a
# concurrency group with the broader western collector: GitHub allows only one
# running and one pending run per group, and a newer pending run can replace an
# older pending run even when cancel-in-progress is false.
concurrency:
group: knowthegulf-destin-current-write
cancel-in-progress: false
jobs:
poll:
runs-on: ubuntu-latest
timeout-minutes: 8
steps:
- uses: actions/checkout@v6
with:
ref: main
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- run: python -m pip install --disable-pip-version-check requests beautifulsoup4 pytest
- name: Validate Destin collector and terminology layer
run: python -m py_compile scripts/update_destin_current.py scripts/collector_resilience.py scripts/florida_flag_terms.py scripts/apply_florida_flag_terms.py scripts/apply_visitbeaches_confidence.py
- name: Run Destin collector regression tests
run: pytest -q tests/test_destin_flag_parser.py tests/test_collector_resilience.py tests/test_visitbeaches_confidence.py
- name: Refresh official Destin flag
run: python scripts/update_destin_current.py
- name: Apply canonical Florida warning-flag terminology
run: python scripts/apply_florida_flag_terms.py destin
- name: Reapply VisitBeaches corroboration and safe gap fill
run: python scripts/apply_visitbeaches_confidence.py destin
- name: Commit Destin flag heartbeat
shell: bash
run: |
bash scripts/persist_paths.sh "data: refresh Destin beach flag" data/destin/current_flag.json