-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.33 KB
/
Copy pathdaily-synthetic-data.yml
File metadata and controls
46 lines (39 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Daily Synthetic Data Append
on:
schedule:
# 05:00 UTC daily — runs before scheduled-refresh
- cron: "0 5 * * *"
workflow_dispatch:
inputs:
days:
description: "Number of days to append (default: 1)"
required: false
default: "1"
jobs:
append-data:
name: Append synthetic day(s)
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
# Need write access to commit updated CSVs
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Append synthetic data
run: |
DAYS="${{ github.event.inputs.days || '1' }}"
python scripts/daily_synthetic_append.py --days "$DAYS"
- name: Commit updated CSV files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "data: append ${{ github.event.inputs.days || '1' }} day(s) of synthetic data [skip ci]"
file_pattern: "data/mock_marketing/*.csv"
# Note: data/ is in .gitignore — update .gitignore if you want to track CSVs
# Alternatively, remove data/mock_marketing/ from .gitignore