Skip to content
Snippets Groups Projects
Commit e0c3ddb0 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

ci: use pnpx in lint-commit-msg script

parent 05d27400
No related branches found
No related tags found
No related merge requests found
...@@ -6,14 +6,14 @@ set -e ...@@ -6,14 +6,14 @@ set -e
if [ "${CI_COMMIT_BEFORE_SHA}" = "0000000000000000000000000000000000000000" ]; if [ "${CI_COMMIT_BEFORE_SHA}" = "0000000000000000000000000000000000000000" ];
then then
echo "commitlint from HEAD^" echo "commitlint from HEAD^"
npx commitlint --from=HEAD^ pnpx commitlint --from=HEAD^
else else
echo "commitlint from ${CI_COMMIT_BEFORE_SHA}" echo "commitlint from ${CI_COMMIT_BEFORE_SHA}"
br=`git branch -r --contains ${CI_COMMIT_BEFORE_SHA}` br=`git branch -r --contains ${CI_COMMIT_BEFORE_SHA}`
if [ ! -n $br ]; if [ ! -n $br ];
then then
npx commitlint --from=HEAD^ pnpx commitlint --from=HEAD^
else else
npx commitlint --from="${CI_COMMIT_BEFORE_SHA}" pnpx commitlint --from="${CI_COMMIT_BEFORE_SHA}"
fi fi
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment