1 parent c011204 commit 603081aCopy full SHA for 603081a
1 file changed
.github/workflows/test.yaml
@@ -45,6 +45,16 @@ jobs:
45
- name: test build
46
run: go build -o convcommitlint
47
48
+ - uses: actions/checkout@v4
49
+ with:
50
+ fetch-depth: ${{ inputs.fetch-depth }}
51
+ ref: ${{ github.head_ref }}
52
+
53
+ - name: 'get base branch last commit'
54
+ run: git fetch origin ${{ inputs.base-branch }}:${{ inputs.base-branch }} --depth 1
55
+ shell: bash
56
+ if: ${{ github.ref_name != inputs.base-branch }}
57
58
- name: check commits
59
run: ./convcommitlint -b main --create-review="true" --comment-drafts="false"
60
env:
0 commit comments