GLOBALGRID2050 / EXPLORE CODE

Part of: Explore Code / Automation and CI / globalgrid2050 / .github/workflows

GlobalGrid2050 Update Generation Aggregates Ytd V6 Workflow and 12 more files

A GitHub Actions workflow. Runs by hand.

700 lines of YAML from globalgrid2050, in 13 files. Topic: Automation and CI. Section 1733 of 2044.

Cut 2026-12-06T03:07:51+00:00. A copy for reading; the repository at the stated commit is the source.

In the State lines below, domain stage, users and canonical status are rule-based first approximations from code and path evidence (rules explore-agent-rules-v1), not observed facts: the rules.

In this section

  1. GlobalGrid2050 UK Solar Lens Workflow automation · globalgrid2050 / .github/workflows/uk-solar-lens.yml lines 1–48
  2. GlobalGrid2050 Update Grid Data Workflow automation · globalgrid2050 / .github/workflows/update-grid-data.yml lines 1–72
  3. GlobalGrid2050 Update 11kV UKPN Workflow automation · globalgrid2050 / .github/workflows/update_11kv_ukpn.yml lines 1–43
  4. GlobalGrid2050 Update Elexon System Prices Daily V4 Workflow automation · globalgrid2050 / .github/workflows/update_elexon_system_prices_daily_v4.yml lines 1–58
  5. GlobalGrid2050 Update EV Chargers Workflow automation · globalgrid2050 / .github/workflows/update_ev_chargers.yml lines 1–45
  6. GlobalGrid2050 Update Generation Aggregates Ytd V6 Workflow automation · globalgrid2050 / .github/workflows/update_generation_aggregates_ytd_v6.yml lines 1–74
  7. GlobalGrid2050 Update Generation Recent MW V6 Workflow automation · globalgrid2050 / .github/workflows/update_generation_recent_mw_v6.yml lines 1–64
  8. GlobalGrid2050 Update Metros Trams Workflow automation · globalgrid2050 / .github/workflows/update_metros_trams.yml lines 1–41
  9. GlobalGrid2050 Update Oil Prices Workflow automation · globalgrid2050 / .github/workflows/update_oil_prices.yml lines 1–53
  10. GlobalGrid2050 Update Prices Workflow automation · globalgrid2050 / .github/workflows/update_prices.yml lines 1–66
  11. GlobalGrid2050 Update Supermarkets Workflow automation · globalgrid2050 / .github/workflows/update_supermarkets.yml lines 1–43
  12. GlobalGrid2050 Update Tube Stations Workflow automation · globalgrid2050 / .github/workflows/update_tube_stations.yml lines 1–41
  13. GlobalGrid2050 Update UK Frequency Daily V5 Workflow automation · globalgrid2050 / .github/workflows/update_uk_frequency_daily_v5.yml lines 1–52

GlobalGrid2050 UK Solar Lens Workflow

A GitHub Actions workflow. Runs on push, on pull requests and by hand.

automationglobalgrid2050 / .github/workflows/uk-solar-lens.yml · lines 1–48 of 48 · Entry point

What it does
It runs solar. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage sub33kv_design (path word 'solar'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: solar.
Inputs & outputs
In: JSON file browser.json.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs Self Test (`testcode/202609150502/proof/self-test.mjs`), Publication (`testcode/202609150502/proof/publication.py`) and Browser (`testcode/202609150502/proof/browser.mjs`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
Self Test (workflow run), Publication (workflow run), Browser (workflow run)
Used by
none found
Produces
none declared
Defines here
UK Solar lens proof
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/uk-solar-lens.yml:1-48 · blob 361f5c9ded3a9a00b0981093f6152f2a3e812d24 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
name: UK Solar lens proof
on:
  pull_request:
    paths: ['testcode/202609150502/**', '.github/workflows/uk-solar-lens.yml']
  push:
    branches: [main]
    paths: ['testcode/202609150502/**', '.github/workflows/uk-solar-lens.yml']
  workflow_dispatch:
permissions:
  contents: read
jobs:
  proof:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '24'
      - uses: actions/setup-python@v5
        with:
          python-version: '3.12'
      - name: Verify production data, seed and null contracts
        env:
          REPORT_PATH: solar-self-test.json
        run: |
          node testcode/202609150502/proof/self-test.mjs
          python testcode/202609150502/proof/publication.py --verify --report solar-manifest.json
      - name: Install Chrome test harness
        run: npm install --no-save --package-lock=false puppeteer@24.31.0
      - name: Run production browser scenarios
        env:
          PROOF_DIR: solar-browser-proof
        run: |
          python -m http.server 8891 --bind 127.0.0.1 > /tmp/solar-http.log 2>&1 &
          SERVER_PID=$!
          trap 'kill "$SERVER_PID"' EXIT
          node testcode/202609150502/proof/browser.mjs
          node -e "if(require('./solar-browser-proof/browser.json').pass!==true)process.exit(1)"
      - name: Preserve proof artifacts
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: uk-solar-proof-${{ github.sha }}
          path: |
            solar-self-test.json
            solar-manifest.json
            solar-browser-proof/

GlobalGrid2050 Update Grid Data Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update-grid-data.yml · lines 1–72 of 72 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain terms in the code: 220kV, 66kV.
Inputs & outputs
Out: commits pushed to the repository. Voltage levels named: 220kV, 66kV.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “fetch-national-grid-data”; runs `scripts/fetch_grid_data.py`, `scripts/fetch_220kv_data.py` and `scripts/fetch_66kv_data.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
fetch-national-grid-data
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update-grid-data.yml:1-72 · blob bcffb6f08bc51629756c637ef1aa054eb401221a · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: fetch-national-grid-data

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  fetch-grid:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run Grid Fetcher
        run: python scripts/fetch_grid_data.py

      - name: Run 220kV Fetcher
        run: python scripts/fetch_220kv_data.py

      - name: Run 66kV Fetcher
        run: python scripts/fetch_66kv_data.py

      - name: Run Substation Fetcher
        run: python scripts/fetch_substations.py

      - name: Run Data Centre Fetcher
        run: python scripts/fetch_datacentres.py

      - name: Run Airport Fetcher
        run: python scripts/fetch_airports.py

      - name: Run Railway Fetcher
        run: python scripts/fetch_railways.py

      - name: Run Industrial Offtaker Fetcher
        run: python scripts/fetch_industrial_offtakers.py

      - name: Run Power Plants Fetcher
        run: python scripts/fetch_power_plants.py

      - name: Run HS2 Fetcher
        run: python scripts/fetch_hs2.py

      - name: Commit and push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          
          # Safely stage any geojson files created
          git add *.geojson || true
          
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated grid, datacentre, airport, railway, industry, power plants, and hs2 fetch"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

  

GlobalGrid2050 Update 11kV UKPN Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_11kv_ukpn.yml · lines 1–43 of 43 · Entry point

What it does
It runs 11kV and substations. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage sub33kv_design (path word '11kv'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 11kV, substations.
Inputs & outputs
Out: commits pushed to the repository. Voltage levels named: 11kV.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `scripts/fetch_11kv_ukpn.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Update 11kV UKPN Substations
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_11kv_ukpn.yml:1-43 · blob 2990290893b324f400716ac8d60e52583e89a433 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
name: Update 11kV UKPN Substations

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  fetch-11kv-ukpn:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run 11kV Substation Fetcher
        run: python scripts/fetch_11kv_ukpn.py

      - name: Commit and push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"

          git add grid_11kv_ukpn.geojson || true

          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated 11kV UKPN update: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update Elexon System Prices Daily V4 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_elexon_system_prices_daily_v4.yml · lines 1–58 of 58 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: changes the web page (DOM); starts processes.
Why it exists in the grid workflow
Domain stage hv_procurement (path word 'prices'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs GlobalGrid2050 Update Elexon System Prices Daily V4 (`scripts/update_elexon_system_prices_daily_v4.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Update Elexon System Prices Daily V4 (workflow run)
Used by
none found
Produces
none declared
Defines here
Update Elexon System Prices Daily V4
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_elexon_system_prices_daily_v4.yml:1-58 · blob a4be92717450dbeae189b114d214f29a456be321 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: output · effects: dom, process · domain stage: hv_procurement · users: EPC_contractor, procurement_buyer · canonical: production_core
name: Update Elexon System Prices Daily V4

on:
  workflow_dispatch:
    inputs:
      lookback_days:
        description: Number of days to refresh
        required: true
        default: '3'
        type: choice
        options: ['1', '2', '3', '7']
permissions:
  contents: write

concurrency:
  group: elexon-system-prices-daily-v4
  cancel-in-progress: true

jobs:
  update:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Determine lookback window
        id: window
        run: |
          if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
            echo "lookback=${{ github.event.inputs.lookback_days }}" >> "$GITHUB_OUTPUT"
          else
            echo "lookback=3" >> "$GITHUB_OUTPUT"
          fi

      - name: Run V4 daily Elexon System Price updater
        run: ELEXON_DAILY_LOOKBACK_DAYS=${{ steps.window.outputs.lookback }} python scripts/update_elexon_system_prices_daily_v4.py

      - name: Commit Elexon System Price data
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -e
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git add data/electricity/elexon_system_prices_half_hourly.csv data/electricity/elexon_system_prices_*.csv
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Update Elexon System Prices daily V4: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No Elexon System Price data changes to commit"
          fi

GlobalGrid2050 Update EV Chargers Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_ev_chargers.yml · lines 1–45 of 45 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `scripts/fetch_ev_chargers.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Update EV Chargers
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_ev_chargers.yml:1-45 · blob 4e48275c23a342adaef5a6f3c4edf85fb802851d · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Update EV Chargers

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  fetch-ev-chargers:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run EV Charger Fetcher
        env:
          OCM_API_KEY: ${{ secrets.OCM_API_KEY }}
        run: python scripts/fetch_ev_chargers.py

      - name: Commit and push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"

          git add ev_chargers.geojson || true

          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated EV charger update: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update Generation Aggregates Ytd V6 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_generation_aggregates_ytd_v6.yml · lines 1–74 of 74 · Entry point

What it does
It runs solar. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs GlobalGrid2050 Backfill Generation Aggregates Year V6 (`scripts/backfill_generation_aggregates_year_v6.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Backfill Generation Aggregates Year V6 (workflow run)
Used by
none found
Produces
none declared
Defines here
Update Generation Aggregates YTD V6
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_generation_aggregates_ytd_v6.yml:1-74 · blob b92a5d8b14bc169139e0adef8a0b2079ebcaf5cf · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Update Generation Aggregates YTD V6

on:
  workflow_dispatch:
    inputs:
      include_solar:
        description: Include Sheffield Solar PVLive solar rows
        required: true
        default: 'true'
permissions:
  contents: write

concurrency:
  group: generation-aggregate-writes-v6
  cancel-in-progress: false

jobs:
  update_ytd:
    runs-on: ubuntu-latest
    timeout-minutes: 240
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Resolve current UTC year
        id: ytd
        run: |
          YEAR=$(date -u +%Y)
          echo "year=$YEAR" >> "$GITHUB_OUTPUT"
          echo "Current year: $YEAR"

      - name: Pull latest main
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -e
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git pull --ff-only https://${PAT}@github.com/${{ github.repository }}.git main

      - name: Aggregate current year to date
        env:
          YEAR: ${{ steps.ytd.outputs.year }}
          INCLUDE_SOLAR: ${{ github.event.inputs.include_solar || 'true' }}
        run: |
          set -e
          YEAR=$YEAR INCLUDE_SOLAR=$INCLUDE_SOLAR python scripts/backfill_generation_aggregates_year_v6.py

      - name: Commit YTD aggregate outputs
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
          YEAR: ${{ steps.ytd.outputs.year }}
        run: |
          set -e
          git add uk_energy_tracking_v6/generation_history/generation_monthly_mwh_by_technology.json
          git add uk_energy_tracking_v6/generation_history/generation_annual_mwh_by_technology.json
          git add uk_energy_tracking_v6/generation_history/generation_seasonal_mwh_by_technology.json
          git add uk_energy_tracking_v6/generation_history/generation_day_night_mwh_by_technology.json
          git add uk_energy_tracking_v6/generation_history/backfill_reports/GENERATION_AGGREGATE_BACKFILL_${YEAR}.md
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Update V6 generation MWh aggregates YTD for ${YEAR}"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No YTD aggregate changes for ${YEAR}"
          fi

GlobalGrid2050 Update Generation Recent MW V6 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_generation_recent_mw_v6.yml · lines 1–64 of 64 · Entry point

What it does
It runs solar. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage upstream_foresight (path word 'generation'): upstream engineering foresight over GB transmission and distribution topology (TSO/DNO, 132kV and above, the REPD pipeline, data centres), which Ventus Ltd states it models for foresight. Domain terms in the code: solar.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs GlobalGrid2050 Update Generation Recent MW V6 (`scripts/update_generation_recent_mw_v6.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Update Generation Recent MW V6 (workflow run)
Used by
none found
Produces
none declared
Defines here
Update Generation Recent MW Slice V6
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_generation_recent_mw_v6.yml:1-64 · blob 071e20fd0428d8082e9750a787bf54c589715694 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: upstream_foresight · users: IPP_developer, ICP_grid_engineer · canonical: production_core
name: Update Generation Recent MW Slice V6

on:
  workflow_dispatch:
    inputs:
      days:
        description: Number of recent complete days to include
        required: true
        default: '30'
      include_solar:
        description: Include Sheffield Solar PVLive solar rows
        required: true
        default: 'true'
permissions:
  contents: write

concurrency:
  group: generation-recent-mw-v6
  cancel-in-progress: false

jobs:
  update_recent_mw:
    runs-on: ubuntu-latest
    timeout-minutes: 180
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Pull latest main
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git pull --ff-only https://${PAT}@github.com/${{ github.repository }}.git main

      - name: Build recent MW slice
        env:
          DAYS: ${{ github.event.inputs.days || '30' }}
          INCLUDE_SOLAR: ${{ github.event.inputs.include_solar || 'true' }}
        run: |
          DAYS=$DAYS INCLUDE_SOLAR=$INCLUDE_SOLAR python scripts/update_generation_recent_mw_v6.py

      - name: Commit recent MW slice
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git add uk_energy_tracking_v6/generation_history/generation_recent_halfhourly_30d.json
          git add uk_energy_tracking_v6/generation_history/backfill_reports/GENERATION_RECENT_MW_SLICE.md
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Update V6 recent generation MW slice"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No recent MW slice changes"
          fi

GlobalGrid2050 Update Metros Trams Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_metros_trams.yml · lines 1–41 of 41 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Fetch UK Metros and Trams”; runs `scripts/fetch_metros_trams.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Fetch UK Metros and Trams
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_metros_trams.yml:1-41 · blob 3d297695e0d0b72999dc7325fa0defce1f564c01 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch UK Metros and Trams

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  update-transit-data:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run Transit Fetcher Script
        run: python scripts/fetch_metros_trams.py

      - name: Commit and Push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git add uk_metros_trams.geojson
          
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated update: Combined UK Metros and Trams geojson"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update Oil Prices Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_oil_prices.yml · lines 1–53 of 53 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage hv_procurement (path word 'prices'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs GlobalGrid2050 Update Oil Prices (`scripts/update_oil_prices.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Update Oil Prices (workflow run)
Used by
none found
Produces
none declared
Defines here
update-oil-prices
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_oil_prices.yml:1-53 · blob cd4b3c6a0bb206cd99b5a5aff34720ee8c68ebeb · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: hv_procurement · users: EPC_contractor, procurement_buyer · canonical: production_core
name: update-oil-prices

on:
  workflow_dispatch:
permissions:
  contents: write
  actions: write

concurrency:
  group: oil-price-update
  cancel-in-progress: true

jobs:
  update:
    runs-on: ubuntu-latest
    timeout-minutes: 15

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run Oil and Fuel update
        run: python scripts/update_oil_prices.py

      - name: Commit and push oil updates
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -e

          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"

          git add uk_energy_tracking/live_oil_prices.json
          git add uk_energy_tracking/oil_price_history.geojson

          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated oil price update: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update Prices Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_prices.yml · lines 1–66 of 66 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Why it exists in the grid workflow
Domain stage hv_procurement (path word 'prices'): HV materials procurement, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: 33kV.
Inputs & outputs
Out: commits pushed to the repository. Voltage levels named: 33kV.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `scripts/update_prices_lv.py`, `scripts/update_prices.py` and `scripts/update_metal_trends.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Update Commodities V5 (workflow run)
Used by
none found
Produces
none declared
Defines here
update-metal-prices
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_prices.yml:1-66 · blob a3b9b7b2c434b5ae1a539cfd3d03eac234f9ae36 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: hv_procurement · users: EPC_contractor, procurement_buyer · canonical: production_core
name: update-metal-prices

on:
  workflow_dispatch:
permissions:
  contents: write
  actions: write

concurrency:
  group: commodity-price-sync
  cancel-in-progress: true

jobs:
  update:
    runs-on: ubuntu-latest
    timeout-minutes: 15

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run LV price update
        run: python scripts/update_prices_lv.py

      - name: Run 33kV price update
        run: python scripts/update_prices.py

      - name: Run historic metal trends update
        run: python scripts/update_metal_trends.py

      - name: Run V5 commodity update
        run: FORCE_COMMODITIES=1 python scripts/update_commodities_v5.py

      - name: Commit and push commodity outputs
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          set -e

          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"

          git add lv_ac_dc_price_estimator/index.md
          git add 33kv_uk_dap_price_estimator/index.md
          git add copper_and_aluminium_prices_historic_trends.md
          git add uk_energy_tracking_v5/live_oil_prices.json
          git add uk_energy_tracking_v5/oil_price_history.geojson

          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated commodity price update: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No commodity price changes to commit"
          fi

GlobalGrid2050 Update Supermarkets Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_supermarkets.yml · lines 1–43 of 43 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs `scripts/fetch_supermarkets.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Update Supermarkets
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_supermarkets.yml:1-43 · blob 39f0ef9c10b9e0c386075f8ff1586618da2191df · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Update Supermarkets

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  fetch-supermarkets:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run Supermarket Fetcher
        run: python scripts/fetch_supermarkets.py

      - name: Commit and push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"

          git add supermarkets_*.geojson || true

          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated supermarket update: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update Tube Stations Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_tube_stations.yml · lines 1–41 of 41 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Named “Fetch London Underground Stations”; runs `scripts/fetch_london_underground.py`.
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
none found
Used by
none found
Produces
none declared
Defines here
Fetch London Underground Stations
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_tube_stations.yml:1-41 · blob 3634259c7998aa94dba609d24984fdb76c6e54c6 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch London Underground Stations

on:
  workflow_dispatch:
permissions:
  contents: write

jobs:
  update-tube-data:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          token: ${{ secrets.GRIDBOT_PAT }}

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install dependencies
        run: pip install requests

      - name: Run Tube Station Script
        run: python scripts/fetch_london_underground.py

      - name: Commit and Push changes
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        run: |
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git add london_underground.geojson
          
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Automated update: London Underground geojson"
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No changes to commit"
          fi

GlobalGrid2050 Update UK Frequency Daily V5 Workflow

A GitHub Actions workflow. Runs by hand.

automationglobalgrid2050 / .github/workflows/update_uk_frequency_daily_v5.yml · lines 1–52 of 52 · Entry point

What it does
It runs automated jobs on GitHub Actions. Side effects: starts processes.
Inputs & outputs
Out: commits pushed to the repository.
Downstream impact
It is itself an entry point (workflow); no other file was found loading it.
What it achieves
Runs GlobalGrid2050 Update UK Frequency Daily V5 (`scripts/update_uk_frequency_daily_v5.py`).
Why it matters
No other file in the estate was found to import it; it is an entry point.
Application
globalgrid2050 · .github/workflows · workflow
Uses
GlobalGrid2050 Update UK Frequency Daily V5 (workflow run)
Used by
none found
Produces
none declared
Defines here
update_uk_frequency_daily_v5
Cannot conclude
Whether this code runs, is used by a live app today, or is correct. This is a static reading.
Evidence
globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 .github/workflows/update_uk_frequency_daily_v5.yml:1-52 · blob 1e94fcb620df8907de960d1f00394831fb088c94 · GitHub at these lines
State
achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: update_uk_frequency_daily_v5

on:
  workflow_dispatch:
permissions:
  contents: write

concurrency:
  group: uk-frequency-daily-v5
  cancel-in-progress: false

jobs:
  update-daily-frequency-health:
    runs-on: ubuntu-latest
    timeout-minutes: 10
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          token: ${{ secrets.GRIDBOT_PAT }}

      - uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: Install Python dependencies
        run: pip install requests

      - name: Update daily frequency health and validation
        run: python scripts/update_uk_frequency_daily_v5.py

      - name: Commit V5 daily frequency health files
        env:
          PAT: ${{ secrets.GRIDBOT_PAT }}
        shell: bash
        run: |
          set -e
          git config --global user.name "gridbot"
          git config --global user.email "bot@globalgrid2050.com"
          git add \
            uk_energy_tracking_v5/grid_frequency_daily_health.csv \
            uk_energy_tracking_v5/live_grid_frequency_daily_health.json \
            uk_energy_tracking_v5/grid_frequency_validation.csv \
            uk_energy_tracking_v5/live_grid_frequency_validation.json \
            gridbot_reports/uk_frequency_daily_validation_v5_report.md
          if [ -n "$(git status --porcelain)" ]; then
            git commit -m "Update UK frequency daily health V5: $(date -u +'%Y-%m-%d %H:%M UTC')"
            git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
            git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:main
          else
            echo "No V5 daily frequency changes to commit"
          fi