diff --git a/commit.bat b/commit.bat index 5e530a3..b7bf6f4 100644 --- a/commit.bat +++ b/commit.bat @@ -21,7 +21,9 @@ for /f "usebackq delims=" %%A in ("version.txt") do ( REM Получение комментария к коммиту set commit_msg="%description% | version: %version%" -REM echo %commit_msg% +echo %description%>version.txt +set /a version+=1 +echo !version!>>version.txt REM Добавление всех изменений git add . @@ -30,6 +32,6 @@ REM Создание коммита git commit -m %commit_msg% REM Отправка в основную ветку (main или master) -REM git push +git push pause \ No newline at end of file diff --git a/version.txt b/version.txt index 922f7eb..6cb54df 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ Оформление канала навигации -1 \ No newline at end of file +3