|
1 | | -# Rebuilds the mocked console demo (static/demo) from upstream cozystack-ui and |
2 | | -# opens a PR with the result. Self-contained: the demo overlay lives in |
3 | | -# demo-src/, the build clones upstream fresh, and the PR is opened in THIS repo |
4 | | -# with the built-in GITHUB_TOKEN — no external tokens, no forks. |
| 1 | +# Rebuilds the mocked console demo (static/demo-app) from the console in the |
| 2 | +# cozystack monorepo and opens a PR with the result. Self-contained: the demo |
| 3 | +# overlay lives in demo-src/, the build clones upstream fresh, and the PR is |
| 4 | +# opened in THIS repo with the built-in GITHUB_TOKEN — no external tokens, no |
| 5 | +# forks. |
5 | 6 | # |
6 | 7 | # Requires: Settings → Actions → General → "Allow GitHub Actions to create and |
7 | 8 | # approve pull requests" (enabled once). This repo is public, so Actions |
@@ -34,23 +35,26 @@ jobs: |
34 | 35 | cache: pnpm |
35 | 36 |
|
36 | 37 | - name: Build demo from upstream (with smoke gate) |
| 38 | + env: |
| 39 | + # Label shown in the demo header; bump it with the release line. |
| 40 | + DEMO_VERSION: v1.7.0-rc.2 |
37 | 41 | run: bash demo-src/build.sh main |
38 | 42 |
|
39 | 43 | - name: Open a PR if the demo changed |
40 | 44 | env: |
41 | 45 | GH_TOKEN: ${{ github.token }} |
42 | 46 | run: | |
43 | | - if git diff --quiet -- static/demo; then |
| 47 | + if git diff --quiet -- static/demo-app; then |
44 | 48 | echo "No demo changes — nothing to do." |
45 | 49 | exit 0 |
46 | 50 | fi |
47 | 51 | BR="demo/refresh-${GITHUB_RUN_ID}" |
48 | 52 | git config user.name "github-actions[bot]" |
49 | 53 | git config user.email "github-actions[bot]@users.noreply.github.com" |
50 | 54 | git checkout -b "$BR" |
51 | | - git add static/demo |
52 | | - git commit --signoff -m "chore(demo): refresh mocked console demo from cozystack-ui" |
| 55 | + git add static/demo-app |
| 56 | + git commit --signoff -m "chore(demo): refresh mocked console demo from cozystack main" |
53 | 57 | git push origin "$BR" |
54 | 58 | gh pr create --base main --head "$BR" --draft \ |
55 | 59 | --title "chore(demo): refresh mocked console demo" \ |
56 | | - --body "Automated rebuild of the /demo/ bundle from the current cozystack-ui. The Playwright smoke check (every sidebar/tab screen, no un-mocked API call or page error) passed on this build. Review the Netlify deploy preview, then merge. Not auto-merged." |
| 60 | + --body "Automated rebuild of the /demo-app/ bundle from the console in the current cozystack main. The Playwright smoke check (every sidebar/tab screen, no un-mocked API call or page error) passed on this build. Review the Netlify deploy preview, then merge. Not auto-merged." |
0 commit comments