@@ -3,11 +3,11 @@ name: Promote SDKs
33# Promote staging to production by fast-forwarding production main up to staging,
44# preserving SHAs so the trunks stay identical and linear (nothing to heal on the
55# next stlc build). This is a git-only reconciliation, not a release: release-please
6- # owns the actual version bump/publish gate on production. Runs as soon as an stlc
7- # build lands on staging main, because any production merge before the promote forks
8- # the trunks and blocks both directions; the daily schedule is a backstop and
9- # workflow_dispatch an eager promote. The fast-forward-only guard below makes every
10- # run a safe no-op when there's nothing to promote.
6+ # owns the actual version bump/publish gate on production. Runs on every push to
7+ # staging main, because any staging-only commit (stlc build or not) forks the trunks
8+ # against the next production merge and blocks both directions; the daily schedule
9+ # is a backstop and workflow_dispatch an eager promote. The fast-forward-only guard
10+ # below makes every run a safe no-op when there's nothing to promote.
1111on :
1212 push :
1313 branches : [main]
2323 promote :
2424 # Runner comes from the STLC_RUNNER repo/org variable when set; defaults to GitHub-hosted.
2525 runs-on : ${{ vars.STLC_RUNNER || 'ubuntu-latest' }}
26- # push: stlc builds only (Stainless-Generated-From trailer); other staging pushes
27- # wait for the schedule.
28- if : >-
29- github.repository == 'runloopai/api-client-python-staging' &&
30- (github.event_name != 'push' || contains(github.event.head_commit.message, 'Stainless-Generated-From'))
26+ if : github.repository == 'runloopai/api-client-python-staging'
3127 # Optional gate: add required reviewers to this environment to approve each
3228 # promote. With none it only scopes secrets and adds no gate. Remove if unused.
3329 environment : production
0 commit comments