File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,11 @@ jobs:
10
10
- uses : actions/checkout@v3
11
11
with :
12
12
fetch-depth : 0
13
- ref : ${{ github.head_ref }}
14
13
15
14
- uses : dart-lang/setup-dart@v1.3
16
15
17
16
- name : Get Dependencies
18
17
run : dart pub get
19
18
20
19
- name : Validate PR Commits
21
- run : VERBOSE=true dart run commitlint_cli --from="origin/ ${{ github.base_ref }}" --to=" ${{ github.head_ref }}" --config lib/commitlint.yaml
20
+ run : VERBOSE=true dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }} --config lib/commitlint.yaml
Original file line number Diff line number Diff line change @@ -101,13 +101,12 @@ jobs:
101
101
- uses: actions/checkout@v3
102
102
with:
103
103
fetch-depth: 0
104
- ref: ${{ github.head_ref }}
105
104
106
105
- uses: dart-lang/setup-dart@v1.3
107
106
108
107
- name: Get Dependencies
109
108
run: dart pub get
110
109
111
110
- name: Validate PR Commits
112
- run: dart run commitlint_cli --from="origin/ ${{ github.base_ref }}" --to=" ${{ github.head_ref }}"
111
+ run: VERBOSE=true dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }} --config lib/commitlint.yaml
113
112
` ` `
You can’t perform that action at this time.
0 commit comments