mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 10:46:43 +02:00
ci: use pnpx in lint-commit-msg script
This commit is contained in:
parent
05d27400a0
commit
e0c3ddb07d
1 changed files with 3 additions and 3 deletions
|
|
@ -6,14 +6,14 @@ set -e
|
|||
if [ "${CI_COMMIT_BEFORE_SHA}" = "0000000000000000000000000000000000000000" ];
|
||||
then
|
||||
echo "commitlint from HEAD^"
|
||||
npx commitlint --from=HEAD^
|
||||
pnpx commitlint --from=HEAD^
|
||||
else
|
||||
echo "commitlint from ${CI_COMMIT_BEFORE_SHA}"
|
||||
br=`git branch -r --contains ${CI_COMMIT_BEFORE_SHA}`
|
||||
if [ ! -n $br ];
|
||||
then
|
||||
npx commitlint --from=HEAD^
|
||||
pnpx commitlint --from=HEAD^
|
||||
else
|
||||
npx commitlint --from="${CI_COMMIT_BEFORE_SHA}"
|
||||
pnpx commitlint --from="${CI_COMMIT_BEFORE_SHA}"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue