Skip to content

Commit 9aae7eb

Browse files
Try with PR only
1 parent b621cd0 commit 9aae7eb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Git
22

33
on:
4-
# Allows you to run this workflow manually from the Actions tab
5-
workflow_dispatch:
64
pull_request:
75

86
jobs:
@@ -12,8 +10,8 @@ jobs:
1210

1311
steps:
1412
- uses: actions/checkout@v4
15-
#with:
16-
# ref: ${{ github.event.pull_request.head.sha }}
13+
with:
14+
ref: ${{ github.event.pull_request.head.sha }}
1715
- name: Use Node.js 20.x
1816
uses: actions/setup-node@v4
1917
with:
@@ -24,5 +22,4 @@ jobs:
2422
run: echo ${{ github.event.sender.login }}
2523
- name: Lint commit message
2624
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
25+
run: npx commitlint --from origin/${{ github.base_ref }} --to HEAD -g ./ui/package.json

0 commit comments

Comments
 (0)