Skip to content

Commit d0adc3c

Browse files
Automate daily TeslaMate compatibility brief (#2)
Run a private 09:00 Europe/London upstream impact analysis and deliver the capped report through GitHub email notifications without storing Gmail credentials.
1 parent ac6eb47 commit d0adc3c

2 files changed

Lines changed: 823 additions & 0 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: TeslaMate upstream impact brief
2+
3+
on:
4+
schedule:
5+
- cron: "0 9 * * *"
6+
timezone: "Europe/London"
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- "codex/hub-v0.1"
11+
paths:
12+
- .github/workflows/teslamate-upstream-brief.yml
13+
- scripts/teslamate_upstream_brief.py
14+
15+
permissions:
16+
contents: read
17+
issues: write
18+
models: read
19+
20+
concurrency:
21+
group: teslamate-upstream-impact-brief
22+
cancel-in-progress: false
23+
24+
jobs:
25+
analyse-and-notify:
26+
name: Analyse upstream and notify
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 12
29+
30+
steps:
31+
- name: Check out analyser only
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
33+
with:
34+
fetch-depth: 1
35+
persist-credentials: false
36+
sparse-checkout: scripts/teslamate_upstream_brief.py
37+
sparse-checkout-cone-mode: false
38+
39+
- name: Validate analyser
40+
run: python3 -m py_compile scripts/teslamate_upstream_brief.py
41+
42+
- name: Generate and post daily brief
43+
env:
44+
GITHUB_TOKEN: ${{ github.token }}
45+
PYTHONUNBUFFERED: "1"
46+
TRACKING_ISSUE_NUMBER: "1"
47+
UPSTREAM_REPOSITORY: teslamate-org/teslamate
48+
RECIPIENT_LOGIN: magrathean-uk
49+
REPORT_TIMEZONE: Europe/London
50+
GITHUB_MODELS_MODEL: openai/gpt-4.1
51+
run: python3 scripts/teslamate_upstream_brief.py

0 commit comments

Comments
 (0)