Skip to content

Daily PERSONFU Collection #6

Daily PERSONFU Collection

Daily PERSONFU Collection #6

Workflow file for this run

name: Daily PERSONFU Collection
on:
schedule:
- cron: "17 11 * * *"
workflow_dispatch: {}
permissions:
contents: write
pages: write
id-token: write
jobs:
collect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Fetch CISA advisories & KEV
run: python scripts/fetch_cisa.py
- name: Fetch FBI cyber
run: python scripts/fetch_fbi.py
- name: Fetch DOJ press
run: python scripts/fetch_doj.py
- name: Fetch DHS news
run: python scripts/fetch_dhs.py
- name: Fetch .gov domains
run: python scripts/fetch_dotgov.py
- name: Fetch transportation
run: python scripts/fetch_transport.py
- name: Fetch aviation
run: python scripts/fetch_aviation.py
- name: Fetch weather
run: python scripts/fetch_weather.py
- name: Fetch public cameras
run: python scripts/fetch_public_cameras.py
- name: Build daily brief
run: python scripts/build_daily_brief.py
- name: Archive snapshot
run: python scripts/build_site_data.py
- name: Commit updated data
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "chore: daily data update $(date -u +%Y-%m-%d)"
git push
fi
deploy-pages:
needs: collect
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Pull latest data
run: git pull --ff-only || true
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: .
- id: deployment
uses: actions/deploy-pages@v4