mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-02 14:29:11 +02:00
12 lines
343 B
Bash
Executable file
12 lines
343 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# see https://github.com/conventional-changelog/commitlint/issues/885
|
|
|
|
if [ "${CI_COMMIT_BEFORE_SHA}" = "0000000000000000000000000000000000000000" ]
|
|
then
|
|
echo "commitlint from HEAD^"
|
|
npx commitlint --from=HEAD^
|
|
else
|
|
echo "commitlint from ${CI_COMMIT_BEFORE_SHA}"
|
|
npx commitlint --from="${CI_COMMIT_BEFORE_SHA}"
|
|
fi
|