Ported from the notplanned venture template: - launch round: every board seat writes a launch plan (positioning, first users, pricing, channels, 7-day success and kill lines); one seat synthesizes them into LAUNCH.md with where each idea came from - launch page brief: one primary call to action in the hero, the working product preloaded with a sample, why-this-exists with real star counts, pricing (free plus at most two honest early-access tiers), honest limits, a design direction that rotates and never repeats the last six - signups through a GitHub issue form prefilled with venture and plan; each signup is thanked on its own issue - checks: deterministic gates, then headless Chrome measuring at exactly 390x844 and 1280x800 (horizontal scroll, button below the fold, JS errors); two fix rounds, then andon with needs-human and /time retry - a contact-sheet screenshot of phone and desktop on the card - 7-day decision on distinct people: v2 card, kill, or one more week then park; a next version counts only signups after its own launch - scheduling: a card that is measuring never blocks the others; one new card a day; a tick runs light stages back to back and one worker run - the studio index at /ventures/ is generated from ventures.json Security: the worker's shell no longer sees tokens or keys, its checkout keeps no token in .git/config, and workflows don't persist credentials. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UpT7eWzeLhRwuYmsSQnbRb
48 lines
2.3 KiB
YAML
48 lines
2.3 KiB
YAML
name: update
|
|
# Pull a fresh Time engine from the central repo and open a PR with the diff (weekly, or run it by hand).
|
|
# Upstream: TIME_UPSTREAM (default teahubxyz/time) at TIME_CHANNEL (default main; pin a tag like v1 for stability).
|
|
# Workflow files can't be changed by Actions' own token, so if those differ the PR lists them for a human to copy.
|
|
on:
|
|
schedule:
|
|
- cron: "17 9 * * 1"
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
jobs:
|
|
update:
|
|
if: github.repository != (vars.TIME_UPSTREAM || 'teahubxyz/time')
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 3
|
|
env:
|
|
UPSTREAM: ${{ vars.TIME_UPSTREAM || 'teahubxyz/time' }}
|
|
CHANNEL: ${{ vars.TIME_CHANNEL || 'main' }}
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- run: git clone -q --depth 1 --branch "$CHANNEL" "https://github.com/$UPSTREAM" /tmp/up
|
|
- name: copy engine, open PR if changed
|
|
run: |
|
|
set -e
|
|
for f in .github/time/time.py .github/time/venture.py .github/time/test_time.py .github/time/seats.json .github/ISSUE_TEMPLATE/early-access.yml .claude/skills/time/SKILL.md; do
|
|
mkdir -p "$(dirname "$f")"; cp "/tmp/up/$f" "$f"
|
|
done
|
|
python3 .github/time/test_time.py > /dev/null
|
|
wf=$(for f in /tmp/up/.github/workflows/*.yml; do b=.github/workflows/$(basename "$f"); cmp -s "$f" "$b" || echo "- \`$b\`"; done)
|
|
if git diff --quiet; then
|
|
echo "Time engine is up to date." | tee -a "$GITHUB_STEP_SUMMARY"
|
|
[ -n "$wf" ] && printf 'Workflow files differ upstream, copy by hand:\n%s\n' "$wf" | tee -a "$GITHUB_STEP_SUMMARY"
|
|
exit 0
|
|
fi
|
|
sha=$(git -C /tmp/up rev-parse --short HEAD)
|
|
branch="time-update-$sha"
|
|
git switch -c "$branch"
|
|
git -c user.name=time -c user.email=time@users.noreply.github.com commit -qam "Update Time to $UPSTREAM@$sha"
|
|
git push -q origin "$branch"
|
|
body="Fresh Time engine from \`$UPSTREAM@$CHANNEL\` ($sha). Offline tests pass."
|
|
[ -n "$wf" ] && body="$body
|
|
|
|
These workflow files differ upstream. Actions can't edit workflows, so copy them by hand from https://github.com/$UPSTREAM/tree/$CHANNEL/.github/workflows:
|
|
$wf"
|
|
gh pr create --title "Update Time ($sha)" --body "$body" --head "$branch"
|