[pull] master from supabase:master #1034
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
| name: Validate pull request | |
| # This workflow will trigger the authorize-vercel-deploys workflow when it's finished. | |
| on: | |
| pull_request: | |
| types: [opened, labeled, unlabeled, synchronize, ready_for_review] | |
| permissions: {} | |
| jobs: | |
| validate-pr: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Tagged with 'do not merge' | |
| if: contains( github.event.pull_request.labels.*.name, 'do-not-merge') | |
| run: | | |
| echo "PR blocked: [tag: do not merge]" | |
| exit 1 | |
| - name: Tagged with 'api-deploy-required' | |
| if: contains( github.event.pull_request.labels.*.name, 'api-deploy-required') | |
| run: | | |
| echo "PR blocked: [tag: api-deploy-required] — confirm the API is deployed in production, then remove the label." | |
| exit 1 | |
| - name: All good | |
| if: ${{ success() }} | |
| run: | | |
| echo "All good" |