Create checkThatTemplatesVersionWasChanged.sh
This commit is contained in:
Родитель
bf4c4c11a6
Коммит
f292016bc2
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
var=$(echo $(git diff origin/main -U0))
|
||||
|
||||
if [[ "$var" == *"version"* ]];
|
||||
then
|
||||
echo "Changed the version of the template, nice!"
|
||||
exit 0
|
||||
else
|
||||
echo "Hey there, you did not change the version of the template, please update the version of the template you changed."
|
||||
exit 1
|
||||
fi
|
Загрузка…
Ссылка в новой задаче