We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 991b25d commit 3a68f9cCopy full SHA for 3a68f9c
1 file changed
docs/integrations/github.md
@@ -250,7 +250,8 @@ jobs:
250
sqlmesh_cicd -p ${{ github.workspace }} github --token ${{ secrets.GITHUB_TOKEN }} run-all
251
# Add deploy step that only runs on merged PR
252
- name: Deploy to Production
253
- if: github.event.pull_request.merged == true
+ # `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'
255
run: |
256
sqlmesh_cicd -p ${{ github.workspace }} github --token ${{ secrets.GITHUB_TOKEN }} deploy-production
257
```
0 commit comments