forked from supabase/supabase-py
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 916 Bytes
/
Copy pathconventional-commits.yml
File metadata and controls
46 lines (37 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Check pull requests
on:
push:
branches-ignore: # Run the checks on all branches but the protected ones
- main
- release/*
pull_request:
branches:
- main
- release/*
types:
- opened
- edited
- reopened
- ready_for_review
permissions:
contents: read
jobs:
check-conventional-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
sparse-checkout: |
.github
- if: ${{ github.event_name == 'pull_request' }}
run: |
set -ex
node .github/workflows/conventional-commits-lint.js pr <<EOF
${{ toJSON(github.event) }}
EOF
- if: ${{ github.event_name == 'push' }}
run: |
set -ex
node .github/workflows/conventional-commits-lint.js push <<EOF
${{ toJSON(github.event) }}
EOF