In this section
- GlobalGrid2050 Elexon System Prices Backfill 10y Workflow automation · globalgrid2050 / .github/workflows/elexon_system_prices_backfill_10y.yml lines 1–126
- GlobalGrid2050 Fetch Elizabeth Line Workflow automation · globalgrid2050 / .github/workflows/fetch_elizabeth_line.yml lines 1–44
- GlobalGrid2050 Fetch Eurostar Workflow automation · globalgrid2050 / .github/workflows/fetch_eurostar.yml lines 1–44
- GlobalGrid2050 Fetch Global Ports Workflow automation · globalgrid2050 / .github/workflows/fetch_global_ports.yml lines 1–47
- GlobalGrid2050 Fetch Heavy Emitters UK Workflow automation · globalgrid2050 / .github/workflows/fetch_heavy_emitters_uk.yml lines 1–29
- GlobalGrid2050 Fetch Motorway Services Workflow automation · globalgrid2050 / .github/workflows/fetch_motorway_services.yml lines 1–46
- GlobalGrid2050 Fetch NAEI Point Sources Workflow automation · globalgrid2050 / .github/workflows/fetch_naei_point_sources.yml lines 1–29
- GlobalGrid2050 Fetch Stadiums Workflow automation · globalgrid2050 / .github/workflows/fetch_stadiums.yml lines 1–44
- GlobalGrid2050 Fetch Subsea Data Cables Workflow automation · globalgrid2050 / .github/workflows/fetch_subsea_data_cables.yml lines 1–46
- GlobalGrid2050 Fetch UK Energy and Prices Workflow automation · globalgrid2050 / .github/workflows/fetch_uk_energy_and_prices.yml lines 1–89
- GlobalGrid2050 Fetch UK Energy and Prices V2 Workflow automation · globalgrid2050 / .github/workflows/fetch_uk_energy_and_prices_v2.yml lines 1–68
- GlobalGrid2050 Fetch UK Energy and Prices V3 Workflow automation · globalgrid2050 / .github/workflows/fetch_uk_energy_and_prices_v3.yml lines 1–72
GlobalGrid2050 Elexon System Prices Backfill 10y Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/elexon_system_prices_backfill_10y.yml · lines 1–126 of 126 · 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
- In: CSV file elexon_system_prices_half_hourly.csv. 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 “One off safe Elexon System Prices backfill”; runs GlobalGrid2050 Download Elexon System Prices Range (`scripts/download_elexon_system_prices_range.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 Download Elexon System Prices Range (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- One off safe Elexon System Prices backfill
- 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/elexon_system_prices_backfill_10y.yml:1-126 · blob 738c9a664beea645a5fb21bb6dc9718089c5f989 · 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: One off safe Elexon System Prices backfill
on:
workflow_dispatch:
inputs:
start_year:
description: Earliest year to attempt
required: true
default: '2016'
final_year:
description: Final year to attempt
required: true
default: '2026'
permissions:
contents: write
concurrency:
group: elexon-system-price-backfill
cancel-in-progress: false
jobs:
backfill:
runs-on: ubuntu-latest
timeout-minutes: 360
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: Configure GridBot
run: |
git config user.name "GridBot"
git config user.email "gridbot@globalgrid2050.com"
git remote set-url origin https://x-access-token:${{ secrets.GRIDBOT_PAT }}@github.com/${{ github.repository }}.git
- name: Sync with main and read V3 diary first
run: |
git fetch origin main
git reset --hard origin/main
test -f uk_energy_tracking_v3/WORK_DIARY.md
head -n 80 uk_energy_tracking_v3/WORK_DIARY.md
- name: Commit and push diary preflight first
run: |
{
printf '\n%s\n' '## Diary preflight: one off Elexon System Prices backfill'
printf '\n%s\n' 'Purpose: fill historical Elexon System Prices safely in annual chunks before returning focus to live gathering.'
printf '%s\n' 'Source file: data/electricity/elexon_system_prices_half_hourly.csv'
printf '%s\n' 'Method: fetch one year at a time, commit and push after each successful year.'
printf '%s\n' 'Stable tracker rule: do not touch uk_energy_tracking/.'
} >> uk_energy_tracking_v3/WORK_DIARY.md
git add uk_energy_tracking_v3/WORK_DIARY.md
if git diff --cached --quiet; then
echo "No diary preflight changes"
else
git commit -m "Diary preflight for Elexon system price backfill"
git pull --rebase origin main
git push origin HEAD:main
fi
- name: Backfill annual chunks and push after each year
env:
START_YEAR: ${{ github.event.inputs.start_year }}
FINAL_YEAR: ${{ github.event.inputs.final_year }}
run: |
set -euo pipefail
git fetch origin main
git reset --hard origin/main
current_year=$(date -u +%Y)
yesterday=$(date -u -d "yesterday" +%F)
for year in $(seq "$FINAL_YEAR" -1 "$START_YEAR"); do
if [ "$year" -gt "$current_year" ]; then
echo "Skipping future year $year"
continue
fi
start="${year}-01-01"
end="${year}-12-31"
if [ "$year" -eq "$current_year" ]; then
end="$yesterday"
fi
echo "Fetching Elexon System Prices for $start to $end"
START_DATE="$start" END_DATE="$end" python scripts/download_elexon_system_prices_range.py
git add data/electricity/elexon_system_prices_half_hourly.csv
if git diff --cached --quiet; then
echo "No CSV changes for $year"
else
git commit -m "Backfill Elexon system prices ${year}"
for attempt in 1 2 3 4 5; do
if git pull --rebase origin main && git push origin HEAD:main; then
echo "Pushed ${year} backfill"
break
fi
echo "Push failed for year ${year}, attempt ${attempt}"
sleep $((attempt * 5))
if [ "$attempt" = "5" ]; then
exit 1
fi
done
fi
done
- name: Commit and push diary completion note
run: |
git fetch origin main
git reset --hard origin/main
{
printf '\n%s\n' '## Diary entry: one off Elexon System Prices backfill completed or attempted'
printf '\n%s\n' 'The one off safe backfill workflow attempted annual Elexon System Price collection.'
printf '%s\n' 'The CSV is the historical context and proofing layer for V3 price history.'
printf '%s\n' 'After this one off fill, normal operation should rely on daily Elexon System Price updates and live V3 Market Index capture.'
} >> uk_energy_tracking_v3/WORK_DIARY.md
git add uk_energy_tracking_v3/WORK_DIARY.md
if git diff --cached --quiet; then
echo "No diary completion changes"
else
git commit -m "Record Elexon system price backfill completion"
git pull --rebase origin main
git push origin HEAD:main
fiGlobalGrid2050 Fetch Elizabeth Line Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_elizabeth_line.yml · lines 1–44 of 44 · 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_elizabeth_line.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 Elizabeth Line
- 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/fetch_elizabeth_line.yml:1-44 · blob d92c9a31d1b898aad209e4a85adb77b3c0f78adf · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch Elizabeth Line
on:
workflow_dispatch:
permissions:
contents: write
jobs:
fetch-crossrail:
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 Elizabeth Line Fetcher
run: python scripts/fetch_elizabeth_line.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 the geojson file
git add elizabeth_line.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated Elizabeth Line 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"
fiGlobalGrid2050 Fetch Eurostar Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_eurostar.yml · lines 1–44 of 44 · 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_eurostar.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 Eurostar
- 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/fetch_eurostar.yml:1-44 · blob 2af3096bdbca85d72064d30333cda7673f3e2e3f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch Eurostar
on:
workflow_dispatch:
permissions:
contents: write
jobs:
fetch-eurostar:
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 Eurostar Fetcher
run: python scripts/fetch_eurostar.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 the geojson file
git add eurostar.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated Eurostar 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"
fiGlobalGrid2050 Fetch Global Ports Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_global_ports.yml · lines 1–47 of 47 · 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_global_ports.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 Global Ports
- 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/fetch_global_ports.yml:1-47 · blob 584403b789b4fbd5b2d72a86ab3ca78b199e981b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch Global Ports
on:
workflow_dispatch:
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
fetch-ports:
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 Global Ports Fetcher
run: python scripts/fetch_global_ports.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 the ports geojson file
git add global_ports.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated global ports 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"
fiGlobalGrid2050 Fetch Heavy Emitters UK Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_heavy_emitters_uk.yml · lines 1–29 of 29 · 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 Fetch Heavy Emitters Ukv7 (`repd_grid_atlasv7/scripts/fetch_heavy_emitters_ukv7.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
- Fetch Heavy Emitters Ukv7 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- Fetch UK Heavy Emitters and Polluters
- 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/fetch_heavy_emitters_uk.yml:1-29 · blob 60be29ba36c4bcb37c4d1ed9e670c2fbdf778a50 · 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 Heavy Emitters and Polluters
on:
workflow_dispatch:
jobs:
update-heavy-emitters:
name: Fetch and Map UK Heavy Emitters and Polluters
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout Repository
uses: actions/checkout@v4
- name: 🐍 Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: 📦 Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pandas requests openpyxl pyproj beautifulsoup4
- name: 🏭 Fetch UK Heavy Emitters
run: python repd_grid_atlasv7/scripts/fetch_heavy_emitters_ukv7.py
env:
PYTHONPATH: .
- name: 🛡️ Commit GeoJSON
run: |
git config --global user.name "Ventus-Bot"
git config --global user.email "bot@ventus.ltd"
git add heavy_emitters_uk.json manifest_heavy_emitters.json
git diff --quiet && git diff --staged --quiet || (git commit -m "UK Heavy Emitters Update: $(date +'%Y-%m-%d')" && git push)GlobalGrid2050 Fetch Motorway Services Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_motorway_services.yml · lines 1–46 of 46 · Entry point
- What it does
- It runs motorways. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain terms in the code: motorways.
- 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_motorway_services.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 Motorway Services
- 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/fetch_motorway_services.yml:1-46 · blob c57f229dab16a4e582594ffc6f4478553012db63 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch Motorway Services
on:
workflow_dispatch:
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
fetch-motorway-services:
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 Motorway Services Fetcher
run: python scripts/fetch_motorway_services.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 motorway_services.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated Motorway Services 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"
fiGlobalGrid2050 Fetch NAEI Point Sources Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_naei_point_sources.yml · lines 1–29 of 29 · 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 Fetch NAEI Point Sources v7 (`repd_grid_atlasv7/scripts/fetch_naei_point_sourcesv7.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
- Fetch NAEI Point Sources v7 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- NAEI Point Sources Sync
- 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/fetch_naei_point_sources.yml:1-29 · blob 9064fdfa7da6ffa374fa03717d73649292017d14 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: NAEI Point Sources Sync
on:
workflow_dispatch:
jobs:
update-naei:
name: Fetch and Parse NAEI Point Sources
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout Repository
uses: actions/checkout@v4
- name: 🐍 Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: 📦 Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pandas requests openpyxl
- name: 🏭 Fetch NAEI Point Sources
run: python repd_grid_atlasv7/scripts/fetch_naei_point_sourcesv7.py
env:
PYTHONPATH: .
- name: 🛡️ Commit GeoJSON
run: |
git config --global user.name "Ventus-Bot"
git config --global user.email "bot@ventus.ltd"
git add dist/naei_point_sources.json
git diff --quiet && git diff --staged --quiet || (git commit -m "NAEI Point Sources Update: $(date +'%Y-%m-%d')" && git push)GlobalGrid2050 Fetch Stadiums Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_stadiums.yml · lines 1–44 of 44 · 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_stadiums.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 Stadiums
- 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/fetch_stadiums.yml:1-44 · blob 89bf854791d31a4eaa5eda92c6fa88a4e60cbd48 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: Fetch Stadiums
on:
workflow_dispatch:
permissions:
contents: write
jobs:
fetch-stadiums:
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 Stadium Fetcher
run: python scripts/fetch_stadiums.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 the stadium geojson file
git add stadiums.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated stadium 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"
fiGlobalGrid2050 Fetch Subsea Data Cables Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_subsea_data_cables.yml · lines 1–46 of 46 · Entry point
- What it does
- It runs cables. Side effects: starts processes.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'cables'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: cables.
- 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_subsea_data_cables.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 Subsea Data Cables
- 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/fetch_subsea_data_cables.yml:1-46 · blob c91f67138dd31a272a2dc7acb18cb83dc14c6feb · 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: Fetch Subsea Data Cables
on:
workflow_dispatch:
permissions:
contents: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
fetch-subsea-data-cables:
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 Subsea Data Cables Fetcher
run: python scripts/fetch_subsea_data_cables.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 subsea_data_cables.geojson || true
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automated Subsea Data Cables 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"
fiGlobalGrid2050 Fetch UK Energy and Prices Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_uk_energy_and_prices.yml · lines 1–89 of 89 · 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
- UK live grid tracker for globalgrid2050.com.
- 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 Energy (workflow run), GlobalGrid2050 Update UK Price (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- fetch_uk_energy_and_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/fetch_uk_energy_and_prices.yml:1-89 · blob f4d84505be316cb5c8a64b4291252178ed491455 · 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
# UK live grid tracker for globalgrid2050.com
# RETIRED LEGACY WORKFLOW.
# V1 is preserved for historical reference and manual recovery only.
# Scheduled live updates have been disabled so active capacity is focused on V4 and V5.
name: fetch_uk_energy_and_prices
on:
workflow_dispatch:
inputs:
slice:
description: 'Which slice to run when triggered manually'
required: true
default: 'both'
type: choice
options: [both, energy, price]
permissions:
contents: write
actions: write
concurrency:
group: uk-energy-tracking
cancel-in-progress: true
jobs:
update:
runs-on: ubuntu-latest
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: Determine slice
id: which
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "slice=${{ github.event.inputs.slice }}" >> "$GITHUB_OUTPUT"
else
echo "slice=both" >> "$GITHUB_OUTPUT"
fi
- name: Run energy slice (manual legacy recovery)
if: steps.which.outputs.slice == 'energy' || steps.which.outputs.slice == 'both'
run: python scripts/update_uk_energy.py
- name: Run price slice (manual legacy recovery)
if: steps.which.outputs.slice == 'price' || steps.which.outputs.slice == 'both'
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
FORCE_UK_PRICE=1 python scripts/update_uk_price.py
else
python scripts/update_uk_price.py
fi
- name: Commit and push changes
run: |
set -e
git config --global user.name "gridbot"
git config --global user.email "bot@globalgrid2050.com"
if [ -f uk_energy_tracking/live_grid_energy.json ]; then
git add uk_energy_tracking/live_grid_energy.json
else
echo "live_grid_energy.json not present for this run"
fi
if [ -f uk_energy_tracking/live_grid_price.json ]; then
git add uk_energy_tracking/live_grid_price.json
else
echo "live_grid_price.json not present for this run"
fi
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Manual legacy UK grid update (${{ steps.which.outputs.slice }}): $(date -u +'%Y-%m-%d %H:%M UTC')"
git push origin HEAD:main
else
echo "No changes to commit"
fiGlobalGrid2050 Fetch UK Energy and Prices V2 Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_uk_energy_and_prices_v2.yml · lines 1–68 of 68 · 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 UK Energy V2 (`scripts/update_uk_energy_v2.py`) and GlobalGrid2050 Update UK Price V2 (`scripts/update_uk_price_v2.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 Energy V2 (workflow run), GlobalGrid2050 Update UK Price V2 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- fetch_uk_energy_and_prices_v2
- 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/fetch_uk_energy_and_prices_v2.yml:1-68 · blob 82db5b3d423b354fe1ba5375d7a5c94cbea21744 · 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: fetch_uk_energy_and_prices_v2
# RETIRED LEGACY WORKFLOW.
# V2 is preserved for historical reference and manual recovery only.
# Scheduled live updates have been disabled so active capacity is focused on V4 and V5.
on:
workflow_dispatch:
inputs:
slice:
description: Which slice to run
required: true
default: both
type: choice
options: [both, energy, price]
permissions:
contents: write
concurrency:
group: uk-energy-tracking-v2
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'
- run: pip install requests
- name: Determine V2 slice
id: which
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "slice=${{ github.event.inputs.slice }}" >> "$GITHUB_OUTPUT"
else
echo "slice=both" >> "$GITHUB_OUTPUT"
fi
- name: Run V2 energy slice
if: steps.which.outputs.slice == 'energy' || steps.which.outputs.slice == 'both'
run: python scripts/update_uk_energy_v2.py
- name: Run V2 price slice
if: steps.which.outputs.slice == 'price' || steps.which.outputs.slice == 'both'
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
FORCE_UK_PRICE=1 python scripts/update_uk_price_v2.py
else
python scripts/update_uk_price_v2.py
fi
- name: Commit V2 grid feeds
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_v2/live_grid_energy.json uk_energy_tracking_v2/live_grid_price.json
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Manual legacy UK grid update V2 (${{ steps.which.outputs.slice }}): $(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 V2 grid feed changes to commit"
fiGlobalGrid2050 Fetch UK Energy and Prices V3 Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/fetch_uk_energy_and_prices_v3.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 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 UK Energy V3 (`scripts/update_uk_energy_v3.py`) and GlobalGrid2050 Update UK Price V3 (`scripts/update_uk_price_v3.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 Energy V3 (workflow run), GlobalGrid2050 Update UK Price V3 (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- fetch_uk_energy_and_prices_v3
- 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/fetch_uk_energy_and_prices_v3.yml:1-72 · blob 94b8a5293bb35dfb819dd0a6de890696fe9fbeea · 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: fetch_uk_energy_and_prices_v3
# RETIRED LEGACY WORKFLOW.
# V3 is preserved for historical reference and manual recovery only.
# Scheduled live updates have been disabled so active capacity is focused on V4 and V5.
on:
workflow_dispatch:
inputs:
slice:
description: Which slice to run
required: true
default: both
type: choice
options: [both, energy, price]
permissions:
contents: write
concurrency:
group: uk-energy-tracking-v3
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'
- run: pip install requests
- name: Determine V3 slice
id: which
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "slice=${{ github.event.inputs.slice }}" >> "$GITHUB_OUTPUT"
else
echo "slice=both" >> "$GITHUB_OUTPUT"
fi
- name: Run V3 energy slice
if: steps.which.outputs.slice == 'energy' || steps.which.outputs.slice == 'both'
run: python scripts/update_uk_energy_v3.py
- name: Run V3 price slice
if: steps.which.outputs.slice == 'price' || steps.which.outputs.slice == 'both'
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
FORCE_UK_PRICE=1 python scripts/update_uk_price_v3.py
else
python scripts/update_uk_price_v3.py
fi
- name: Commit V3 grid feeds and price history
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_v3/live_grid_energy.json \
uk_energy_tracking_v3/live_grid_price.json \
uk_energy_tracking_v3/electricity_price_history.csv \
uk_energy_tracking_v3/electricity_price_history.json
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Manual legacy UK grid update V3 (${{ steps.which.outputs.slice }}): $(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 V3 grid feed or price history changes to commit"
fi