Conversation
At-a-glance signal for contributors whether main is currently green. Links straight to the deploy workflow runs page on click.
The previous trigger was push-only, so PRs never fired the workflow — required status checks stayed "Expected / Waiting" forever and the protected main branch could not be merged into from any PR. Add a pull_request trigger so build-backend and build-frontend run on every PR targeting main, turning green/red in the PR check widget as intended. Gate the deploy job with an if: condition so it only fires on real pushes to main (i.e. post-merge), not on every PR — otherwise every open PR would race to SSH into prod. Net effect on the workflow: - PR opened/updated → build-backend + build-frontend run → deploy skipped → PR mergeable once both builds green. - PR merged to main → push event → all three jobs run → deploy performs the actual rollout.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GitHub Actions status badge for the
deploy.ymlworkflow at the top of the README so readers (and we) can see at a glance whethermainis currently green.Type of change
docs— docs onlyTest plan
npm run buildstill clean (no README impact on build, but verified)./actions/workflows/deploy.yml, clicking opens the runs page.Screenshots / recordings
Badge renders at the top of the README, above the existing License / FastAPI / Postgres / React / TypeScript / TailwindCSS badges.
Database / migration notes
None.
Breaking changes
None.
Related
First PR after switching
mainto a protected branch — verifies the workflow (CI gate + squash-merge) end-to-end.