mirror of
https://github.com/supabase/supabase.git
synced 2026-05-06 17:00:27 -04:00
92bdbb2f57
enforces minimal set of permissions, the same as other actions in the repo
25 lines
593 B
YAML
25 lines
593 B
YAML
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:
|
|
contents: read
|
|
|
|
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: All good
|
|
if: ${{ success() }}
|
|
run: |
|
|
echo "All good"
|