ci: fix commitlint CI failure
This commit is contained in:
committed by
Steve Chavez
parent
bc99ec8285
commit
0b69ad0e65
@@ -46,7 +46,9 @@ jobs:
|
|||||||
- name: Run commitlint (check locally with `nix-shell --run postgrest-commitlint`)
|
- name: Run commitlint (check locally with `nix-shell --run postgrest-commitlint`)
|
||||||
run: |
|
run: |
|
||||||
# Fetch target branch explicitly
|
# Fetch target branch explicitly
|
||||||
git fetch origin ${{ github.base_ref }}
|
# For PRs event -> github.base_ref
|
||||||
|
# For push event -> github.ref_name
|
||||||
|
git fetch origin ${{ github.base_ref || github.ref_name }}
|
||||||
|
|
||||||
# Run commitlint
|
# Run commitlint
|
||||||
postgrest-commitlint --from origin/${{ github.base_ref }} --to HEAD
|
postgrest-commitlint --from origin/${{ github.base_ref || github.ref_name }} --to HEAD
|
||||||
|
|||||||
Reference in New Issue
Block a user