Skip to content

Commit a4eecec

Browse files
authored
Merge pull request #8 from runloopai/ci/stlc-promote-every-push
ci(stlc): promote on every push to staging main
2 parents 5b21a08 + 1457511 commit a4eecec

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

‎.github/workflows/stlc-promote.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
1111
on:
1212
push:
1313
branches: [main]
@@ -23,11 +23,7 @@ jobs:
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

Comments
 (0)