mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 20:17:46 +02:00
ci: expire dependency artifacts in 15 min
+ fix typo: missing extension in lint-commit-msg.sh script
This commit is contained in:
parent
051951e946
commit
65d0a79186
2 changed files with 4 additions and 2 deletions
12
scripts/lint-commit-msg.sh
Executable file
12
scripts/lint-commit-msg.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue