Skip to content

Commit 46f9ab0

Browse files
committed
fix(action): Do not fetch if head ref is base branch
1 parent b5473f2 commit 46f9ab0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

action.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ runs:
3737
- name: 'get base branch last commit'
3838
run: git fetch origin ${{ inputs.base-branch }}:${{ inputs.base-branch }} --depth 1
3939
shell: bash
40+
if: ${{ github.head_ref != inputs.base-branch }}
4041
- name: "Lint commits"
4142
shell: bash
4243
run: |

0 commit comments

Comments
 (0)