You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/SETUP.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,38 @@ Only needed if you want cross-repo commits (e.g., pushing to YogaMatLabApp).
32
32
- Value: Your personal access token
33
33
- Click **Add secret**
34
34
35
+
### 3. (Optional, recommended) Set up BRANDS_SYNC_TOKEN
36
+
37
+
Only needed if you want `config/brands.json` changes to automatically sync into your app repo via `.github/workflows/update-brands.yml`.
38
+
39
+
This token must have access to the *target repo* (by default `productStripesAdmin/YogaMatLabApp`).
40
+
41
+
1. Create a Personal Access Token:
42
+
- Recommended: **Tokens (classic)** with scope `repo` (private repos)
43
+
- Alternative: fine-grained token that has access to the target repo and can trigger workflows / dispatch events
44
+
45
+
2. Add to this repository:
46
+
- Go to repository Settings → Secrets and variables → Actions
47
+
- Click **New repository secret**
48
+
- Name: `BRANDS_SYNC_TOKEN`
49
+
- Value: Your token
50
+
- Click **Add secret**
51
+
52
+
### 4. (Optional) Configure target repo variables
53
+
54
+
If the app repo is not `productStripesAdmin/YogaMatLabApp`, set these repository variables (Settings → Secrets and variables → Actions → **Variables**):
55
+
56
+
-`BRANDS_SYNC_TARGET_OWNER` (defaults to this repo owner)
57
+
-`BRANDS_SYNC_TARGET_REPO` (defaults to `YogaMatLabApp`)
58
+
-`BRANDS_SYNC_TARGET_BRANCH` (defaults to `main`)
59
+
-`BRANDS_SYNC_TARGET_PATH` (defaults to `config/brands.json`)
60
+
61
+
## Config Sync to data branch
62
+
63
+
If YogaMatLabApp consumes this repo via a submodule tracking the `data` branch (common for production), the `config/` directory also needs to be kept up to date there.
64
+
65
+
This repo includes `.github/workflows/sync-config-to-data-branch.yml`, which syncs `config/**` from `main` → `data` on every config change.
0 commit comments