Skip to content

Commit 603081a

Browse files
committed
ci: Fetch history
1 parent c011204 commit 603081a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
- name: test build
4646
run: go build -o convcommitlint
4747

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+
4858
- name: check commits
4959
run: ./convcommitlint -b main --create-review="true" --comment-drafts="false"
5060
env:

0 commit comments

Comments
 (0)