In this section
- GlobalGrid2050 Gridbot Daily MWh Titles Labels Workflow automation · globalgrid2050 / .github/workflows/gridbot_daily_mwh_titles_labels.yml lines 1–89
- GlobalGrid2050 Gridbot Deprecated Tracker Stale Data Audit Workflow automation · globalgrid2050 / .github/workflows/gridbot_deprecated_tracker_stale_data_audit.yml lines 1–70
- GlobalGrid2050 Gridbot Generation Daily MWh Fuelhh Chunks Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_daily_mwh_fuelhh_chunks.yml lines 1–102
- GlobalGrid2050 Gridbot Generation History Solar Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_history_solar.yml lines 1–97
- GlobalGrid2050 Gridbot Generation History Solar Recent Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_history_solar_recent.yml lines 1–95
- GlobalGrid2050 Gridbot Generation History V6 2 Backup Mirror Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_history_v6_2_backup_mirror.yml lines 1–90
- GlobalGrid2050 Gridbot Generation Interconnector Split Workflow automation · globalgrid2050 / .github/workflows/gridbot_generation_interconnector_split.yml lines 1–111
GlobalGrid2050 Gridbot Daily MWh Titles Labels Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_daily_mwh_titles_labels.yml · lines 1–89 of 89 · 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 Gridbot Daily MWh Titles Labels (`scripts/gridbot_daily_mwh_titles_labels.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 Gridbot Daily MWh Titles Labels (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Daily MWh Titles Labels
- 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/gridbot_daily_mwh_titles_labels.yml:1-89 · blob 6db68bbcc32419855c2f684e2949245e35be043f · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: unknown · users: none · canonical: production_core
name: GridBot Daily MWh Titles Labels
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit reports and title changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-daily-mwh-titles-labels
cancel-in-progress: false
jobs:
daily-mwh-titles-labels:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_daily_mwh_titles_labels.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_daily_mwh_titles_labels.py --apply
- name: Upload title label report
uses: actions/upload-artifact@v4
with:
name: daily-mwh-titles-labels-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/DAILY_MWH_TITLES_LABELS_LATEST.md
data_science_protocol/audit_reports/json/DAILY_MWH_TITLES_LABELS_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_titles_labels.py
git add .github/workflows/gridbot_daily_mwh_titles_labels.yml
git add data_science_protocol/audit_reports/DAILY_MWH_TITLES_LABELS_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_TITLES_LABELS_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh titles labels audit"
git push origin HEAD:main
fi
- name: Commit title label changes and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_daily_mwh_titles_labels.py
git add .github/workflows/gridbot_daily_mwh_titles_labels.yml
git add uk_energy_tracking_v6/generation_history/index.md
git add data_science_protocol/audit_reports/DAILY_MWH_TITLES_LABELS_LATEST.md
git add data_science_protocol/audit_reports/json/DAILY_MWH_TITLES_LABELS_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: daily mwh titles labels apply"
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Deprecated Tracker Stale Data Audit Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_deprecated_tracker_stale_data_audit.yml · lines 1–70 of 70 · 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 experimental (path word 'deprecated'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- 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 Gridbot Deprecated Tracker Stale Data Audit (`scripts/gridbot_deprecated_tracker_stale_data_audit.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 Gridbot Deprecated Tracker Stale Data Audit (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Deprecated Tracker Stale Data Audit
- 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/gridbot_deprecated_tracker_stale_data_audit.yml:1-70 · blob 8cdc55310dad810a97b1b6b5ce3d049ccbd5d547 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: process · domain stage: experimental · users: none · canonical: production_core
name: GridBot Deprecated Tracker Stale Data Audit
on:
workflow_dispatch:
inputs:
mode:
description: Audit only for deprecated tracker stale data defect
required: true
default: audit
type: choice
options:
- audit
commit_reports:
description: Commit audit reports and manifest
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-deprecated-tracker-stale-data-audit
cancel-in-progress: false
jobs:
audit:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main
run: git pull --ff-only origin main
- name: Run deprecated tracker stale data audit
run: python scripts/gridbot_deprecated_tracker_stale_data_audit.py --mode audit
- name: Upload audit reports
if: always()
uses: actions/upload-artifact@v4
with:
name: deprecated-tracker-stale-data-audit
path: |
data_science_protocol/audit_reports/DEPRECATED_TRACKER_STALE_DATA_AUDIT_LATEST.md
data_science_protocol/audit_reports/json/DEPRECATED_TRACKER_STALE_DATA_AUDIT_LATEST.json
gridbot_manifests/DEPRECATED_TRACKER_STALE_DATA_RETIREMENT_MANIFEST.json
- name: Commit audit reports and manifest
if: ${{ github.event.inputs.commit_reports == 'true' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_deprecated_tracker_stale_data_audit.py
git add .github/workflows/gridbot_deprecated_tracker_stale_data_audit.yml
git add data_science_protocol/audit_reports/DEPRECATED_TRACKER_STALE_DATA_AUDIT_LATEST.md
git add data_science_protocol/audit_reports/json/DEPRECATED_TRACKER_STALE_DATA_AUDIT_LATEST.json
git add gridbot_manifests/DEPRECATED_TRACKER_STALE_DATA_RETIREMENT_MANIFEST.json
if git diff --cached --quiet; then
echo "No audit changes to commit."
else
git commit -m "gridbot: deprecated tracker stale data audit"
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Generation Daily MWh Fuelhh Chunks Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_generation_daily_mwh_fuelhh_chunks.yml · lines 1–102 of 102 · 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 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.
- 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 Build Generation Daily MWh Fuelhh Chunks (`scripts/build_generation_daily_mwh_fuelhh_chunks.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 Build Generation Daily MWh Fuelhh Chunks (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Generation Daily MWh FUELHH Chunks
- 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/gridbot_generation_daily_mwh_fuelhh_chunks.yml:1-102 · blob c6be767f4092306e1d9c9eda0042e23f4711e8e0 · 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: GridBot Generation Daily MWh FUELHH Chunks
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
start_year:
description: Start year for this chunk
required: true
default: '2016'
end_year:
description: End year for this chunk
required: true
default: '2016'
max_bytes:
description: Maximum output file size in bytes
required: true
default: '25000000'
commit_reports:
description: Commit reports and outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-generation-daily-mwh-fuelhh-${{ github.event.inputs.start_year }}-${{ github.event.inputs.end_year }}
cancel-in-progress: false
jobs:
daily-mwh-fuelhh:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/build_generation_daily_mwh_fuelhh_chunks.py --start-year ${{ github.event.inputs.start_year }} --end-year ${{ github.event.inputs.end_year }} --max-bytes ${{ github.event.inputs.max_bytes }}
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/build_generation_daily_mwh_fuelhh_chunks.py --start-year ${{ github.event.inputs.start_year }} --end-year ${{ github.event.inputs.end_year }} --max-bytes ${{ github.event.inputs.max_bytes }} --apply
- name: Upload daily MWh report
uses: actions/upload-artifact@v4
with:
name: generation-daily-mwh-fuelhh-${{ github.event.inputs.mode }}-${{ github.event.inputs.start_year }}-${{ github.event.inputs.end_year }}
path: |
data_science_protocol/audit_reports/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.md
data_science_protocol/audit_reports/json/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/build_generation_daily_mwh_fuelhh_chunks.py
git add .github/workflows/gridbot_generation_daily_mwh_fuelhh_chunks.yml
git add data_science_protocol/audit_reports/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation daily mwh fuelhh audit ${{ github.event.inputs.start_year }} ${{ github.event.inputs.end_year }}"
git push origin HEAD:main
fi
- name: Commit daily MWh output and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/build_generation_daily_mwh_fuelhh_chunks.py
git add .github/workflows/gridbot_generation_daily_mwh_fuelhh_chunks.yml
git add uk_energy_tracking_v6/generation_history/generation_daily_mwh_by_technology_fuelhh_*.json
git add uk_energy_tracking_v6/generation_history/generation_daily_mwh_by_technology_fuelhh_index.json
git add data_science_protocol/audit_reports/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_DAILY_MWH_FUELHH_CHUNKS_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation daily mwh fuelhh apply ${{ github.event.inputs.start_year }} ${{ github.event.inputs.end_year }}"
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Generation History Solar Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_generation_history_solar.yml · lines 1–97 of 97 · 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
- 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 Gridbot Generation History Solar (`scripts/gridbot_generation_history_solar.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 Gridbot Generation History Solar (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Generation History Solar
- 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/gridbot_generation_history_solar.yml:1-97 · blob d8904d7d8b11504281d5dfdefa1654d7dbcdc605 · 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: GridBot Generation History Solar
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
manifest:
description: Manifest path
required: true
default: gridbot_manifests/010_generation_history_solar_ui.yml
type: string
phase:
description: Phase to run, or all
required: true
default: all
type: string
commit_reports:
description: Commit audit reports and applied outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-generation-history-solar
cancel-in-progress: false
jobs:
gridbot-generation-history-solar:
runs-on: ubuntu-latest
timeout-minutes: 60
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: Install manifest dependencies
run: python -m pip install pyyaml
- name: Run Solar GridBot in audit mode
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_generation_history_solar.py --manifest "$GITHUB_WORKSPACE/${{ github.event.inputs.manifest }}" --phase "${{ github.event.inputs.phase }}"
- name: Run Solar GridBot in apply mode
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_generation_history_solar.py --manifest "$GITHUB_WORKSPACE/${{ github.event.inputs.manifest }}" --phase "${{ github.event.inputs.phase }}" --apply
- name: Upload Solar GridBot reports
if: always()
uses: actions/upload-artifact@v4
with:
name: generation-history-solar-report
path: |
data_science_protocol/audit_reports/GENERATION_HISTORY_SOLAR_LATEST.md
data_science_protocol/audit_reports/json/GENERATION_HISTORY_SOLAR_LATEST.json
- name: Commit Solar GridBot outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add data/confirmed/pvlive_solar_daily_candidate.json || true
git add uk_energy_tracking_v6/generation_history/pvlive_solar_daily_browser.json || true
git add uk_energy_tracking_v6/generation_history/live-config.js || true
git add uk_energy_tracking_v6/generation_history/load_generation_history_data.js || true
git add uk_energy_tracking_v6/generation_history/index.md || true
git add data_science_protocol/audit_reports/GENERATION_HISTORY_SOLAR_LATEST.md || true
git add data_science_protocol/audit_reports/json/GENERATION_HISTORY_SOLAR_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar GridBot outputs to commit"
exit 0
fi
git commit -m "gridbot: run generation history solar ${{ github.event.inputs.mode }} ${{ github.event.inputs.phase }}"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:mainGlobalGrid2050 Gridbot Generation History Solar Recent Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_generation_history_solar_recent.yml · lines 1–95 of 95 · 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
- 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 Gridbot Generation History Solar Recent (`scripts/gridbot_generation_history_solar_recent.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 Gridbot Generation History Solar Recent (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Generation History Solar Recent
- 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/gridbot_generation_history_solar_recent.yml:1-95 · blob 7aa8ee5a9bdbe127b4b945b394c91f74ffa812af · 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: GridBot Generation History Solar Recent
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
manifest:
description: Manifest path
required: true
default: gridbot_manifests/011_generation_history_solar_recent.yml
type: string
phase:
description: Phase to run, or all
required: true
default: all
type: string
commit_reports:
description: Commit audit reports and applied outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-generation-history-solar-recent
cancel-in-progress: false
jobs:
gridbot-generation-history-solar-recent:
runs-on: ubuntu-latest
timeout-minutes: 60
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: Install manifest dependencies
run: python -m pip install pyyaml
- name: Run Solar Recent GridBot in audit mode
if: github.event.inputs.mode == 'audit'
run: python scripts/gridbot_generation_history_solar_recent.py --manifest "$GITHUB_WORKSPACE/${{ github.event.inputs.manifest }}" --phase "${{ github.event.inputs.phase }}"
- name: Run Solar Recent GridBot in apply mode
if: github.event.inputs.mode == 'apply'
run: python scripts/gridbot_generation_history_solar_recent.py --manifest "$GITHUB_WORKSPACE/${{ github.event.inputs.manifest }}" --phase "${{ github.event.inputs.phase }}" --apply
- name: Upload Solar Recent GridBot reports
if: always()
uses: actions/upload-artifact@v4
with:
name: generation-history-solar-recent-report
path: |
data_science_protocol/audit_reports/GENERATION_HISTORY_SOLAR_RECENT_LATEST.md
data_science_protocol/audit_reports/json/GENERATION_HISTORY_SOLAR_RECENT_LATEST.json
- name: Commit Solar Recent GridBot outputs
if: github.event.inputs.commit_reports == 'true'
shell: bash
env:
PAT: ${{ secrets.GRIDBOT_PAT }}
run: |
set -euo pipefail
git config --global user.name "Gridbot"
git config --global user.email "gridbot@globalgrid2050.com"
git add uk_energy_tracking_v6/generation_history/pvlive_solar_recent_30d_30min_browser.json || true
git add uk_energy_tracking_v6/generation_history/live-config.js || true
git add uk_energy_tracking_v6/generation_history/load_generation_history_data.js || true
git add data_science_protocol/audit_reports/GENERATION_HISTORY_SOLAR_RECENT_LATEST.md || true
git add data_science_protocol/audit_reports/json/GENERATION_HISTORY_SOLAR_RECENT_LATEST.json || true
if git diff --cached --quiet; then
echo "No Solar Recent GridBot outputs to commit"
exit 0
fi
git commit -m "gridbot: run generation history solar recent ${{ github.event.inputs.mode }} ${{ github.event.inputs.phase }}"
git pull --rebase https://${PAT}@github.com/${{ github.repository }}.git main
git push https://${PAT}@github.com/${{ github.repository }}.git HEAD:mainGlobalGrid2050 Gridbot Generation History V6 2 Backup Mirror Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_generation_history_v6_2_backup_mirror.yml · lines 1–90 of 90 · 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 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.
- 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 Gridbot Generation History V6 2 Backup Mirror (`scripts/gridbot_generation_history_v6_2_backup_mirror.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 Gridbot Generation History V6 2 Backup Mirror (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Generation History V6 2 Backup Mirror
- 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/gridbot_generation_history_v6_2_backup_mirror.yml:1-90 · blob 1c149a2bd4d90cd7511f3e4b3a1cc97ed0ca744c · 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: GridBot Generation History V6 2 Backup Mirror
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
commit_reports:
description: Commit reports and backup mirror changes
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-generation-history-v6-2-backup-mirror
cancel-in-progress: false
jobs:
backup-mirror:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before generating mirror
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: python scripts/gridbot_generation_history_v6_2_backup_mirror.py
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: python scripts/gridbot_generation_history_v6_2_backup_mirror.py --apply
- name: Upload backup mirror report
uses: actions/upload-artifact@v4
with:
name: generation-history-v6-2-backup-mirror-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.md
data_science_protocol/audit_reports/json/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_generation_history_v6_2_backup_mirror.py
git add .github/workflows/gridbot_generation_history_v6_2_backup_mirror.yml
git add data_science_protocol/audit_reports/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation history v6 2 backup mirror audit"
git push origin HEAD:main
fi
- name: Commit backup mirror and apply report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add -A uk_energy_tracking_v6_2/generation_history
git add index.html
git add scripts/gridbot_generation_history_v6_2_backup_mirror.py
git add .github/workflows/gridbot_generation_history_v6_2_backup_mirror.yml
git add data_science_protocol/audit_reports/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_HISTORY_V6_2_BACKUP_MIRROR_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation history v6 2 backup mirror apply"
git push origin HEAD:main
fiGlobalGrid2050 Gridbot Generation Interconnector Split Workflow
A GitHub Actions workflow. Runs by hand.
automationglobalgrid2050 / .github/workflows/gridbot_generation_interconnector_split.yml · lines 1–111 of 111 · Entry point
- What it does
- It runs interconnectors. 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: interconnectors.
- 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 Gridbot Generation Interconnector Split (`scripts/gridbot_generation_interconnector_split.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 Gridbot Generation Interconnector Split (workflow run)
- Used by
- none found
- Produces
- none declared
- Defines here
- GridBot Generation Interconnector Split
- 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/gridbot_generation_interconnector_split.yml:1-111 · blob a59189a8bcfe987bebc3e0bd9de1953790ed2312 · 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: GridBot Generation Interconnector Split
on:
workflow_dispatch:
inputs:
mode:
description: Run mode
required: true
default: audit
type: choice
options:
- audit
- apply
start_year:
description: First year to scan from signed repository raw-code rows
required: true
default: '2016'
end_year:
description: Last year to scan, or auto
required: true
default: auto
commit_reports:
description: Commit reports and apply outputs
required: true
default: 'true'
type: choice
options:
- 'true'
- 'false'
permissions:
contents: write
concurrency:
group: gridbot-generation-interconnector-split
cancel-in-progress: false
jobs:
generation-interconnector-split:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GRIDBOT_PAT }}
- name: Sync latest main before processing
run: git pull --ff-only origin main
- name: Run audit
if: ${{ github.event.inputs.mode == 'audit' }}
run: |
python scripts/gridbot_generation_interconnector_split.py \
--start-year "${{ github.event.inputs.start_year }}" \
--end-year "${{ github.event.inputs.end_year }}"
- name: Run apply
if: ${{ github.event.inputs.mode == 'apply' }}
run: |
python scripts/gridbot_generation_interconnector_split.py \
--start-year "${{ github.event.inputs.start_year }}" \
--end-year "${{ github.event.inputs.end_year }}" \
--apply
- name: Upload interconnector split report
if: always()
uses: actions/upload-artifact@v4
with:
name: generation-interconnector-split-${{ github.event.inputs.mode }}
path: |
data_science_protocol/audit_reports/GENERATION_INTERCONNECTOR_SPLIT_LATEST.md
data_science_protocol/audit_reports/json/GENERATION_INTERCONNECTOR_SPLIT_LATEST.json
- name: Commit audit report only
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'audit' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_generation_interconnector_split.py
git add .github/workflows/gridbot_generation_interconnector_split.yml
git add data_science_protocol/audit_reports/GENERATION_INTERCONNECTOR_SPLIT_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_INTERCONNECTOR_SPLIT_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation interconnector split audit"
git push origin HEAD:main
fi
- name: Commit interconnector split outputs and report
if: ${{ github.event.inputs.commit_reports == 'true' && github.event.inputs.mode == 'apply' }}
run: |
git config user.name "Gridbot"
git config user.email "gridbot@users.noreply.github.com"
git add scripts/gridbot_generation_interconnector_split.py
git add .github/workflows/gridbot_generation_interconnector_split.yml
git add uk_energy_tracking_v6/generation_history/index.md
git add uk_energy_tracking_v6/generation_history/load_generation_mwh_aggregates.js
git add uk_energy_tracking_v6/generation_history/render_generation_mwh_aggregates.js
git add uk_energy_tracking_v6/generation_history/control_generation_mwh_aggregates.js
git add uk_energy_tracking_v6/generation_history/interconnectors/*.json
git add data_science_protocol/audit_reports/GENERATION_INTERCONNECTOR_SPLIT_LATEST.md
git add data_science_protocol/audit_reports/json/GENERATION_INTERCONNECTOR_SPLIT_LATEST.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "gridbot: generation interconnector split apply"
git push origin HEAD:main
fi