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:
1010 - uses : actions/checkout@v3
1111 with :
1212 fetch-depth : 0
13- ref : ${{ github.head_ref }}
1413
1514 - uses : dart-lang/setup-dart@v1.3
1615
1716 - name : Get Dependencies
1817 run : dart pub get
1918
2019 - 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:
101101 - uses: actions/checkout@v3
102102 with:
103103 fetch-depth: 0
104- ref: ${{ github.head_ref }}
105104
106105 - uses: dart-lang/setup-dart@v1.3
107106
108107 - name: Get Dependencies
109108 run: dart pub get
110109
111110 - 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
113112` ` `
You can’t perform that action at this time.
0 commit comments