Skip to content

Commit 6841dad

Browse files
committed
fix(action): use ref name instead of head ref
head_ref always not equal to base-branch, using ref name instead
1 parent 46f9ab0 commit 6841dad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +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 }}
40+
if: ${{ github.ref_name != inputs.base-branch }}
4141
- name: "Lint commits"
4242
shell: bash
4343
run: |

0 commit comments

Comments
 (0)