Skip to content

Commit 3a68f9c

Browse files
authored
chore: update docs to only deploy on merge to main (#1602)
1 parent 991b25d commit 3a68f9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/integrations/github.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,8 @@ jobs:
250250
sqlmesh_cicd -p ${{ github.workspace }} github --token ${{ secrets.GITHUB_TOKEN }} run-all
251251
# Add deploy step that only runs on merged PR
252252
- name: Deploy to Production
253-
if: github.event.pull_request.merged == true
253+
# `main` should be the name of your branch that represents production
254+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
254255
run: |
255256
sqlmesh_cicd -p ${{ github.workspace }} github --token ${{ secrets.GITHUB_TOKEN }} deploy-production
256257
```

0 commit comments

Comments
 (0)