File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Git
2
2
3
- on :
4
- # Allows you to run this workflow manually from the Actions tab
5
- workflow_dispatch :
6
- pull_request :
3
+ on : [pull_request]
7
4
8
5
jobs :
9
6
lint :
10
7
runs-on : ubuntu-latest
11
8
name : Lint Commit Messages
12
-
9
+
13
10
steps :
14
11
- uses : actions/checkout@v4
15
- # with:
16
- # ref: ${{ github.event.pull_request.head.sha }}
12
+ with :
13
+ ref : ${{ github.event.pull_request.head.sha }}
17
14
- name : Use Node.js 20.x
18
15
uses : actions/setup-node@v4
19
16
with :
24
21
run : echo ${{ github.event.sender.login }}
25
22
- name : Lint commit message
26
23
if : ${{ github.event.sender.login != 'dependabot[bot]' }}
27
- # run: npx commitlint --from origin/${{ github.base_ref }} --to HEAD -g ./ui/package.json
28
- run : npx commitlint --from origin/refs/heads/master --to HEAD -g ./ui/package.json
24
+ run : npx commitlint --from origin/${{ github.base_ref }} --to HEAD -g ./ui/package.json
You can’t perform that action at this time.
0 commit comments