jetbrains: Commit in one line

Co-authored-by: Janik <80165193+Janik-Haag@users.noreply.github.com>
This commit is contained in:
Dominik Ritter 2023-08-13 00:00:11 +02:00
parent 2837dc7608
commit a56241ed7b
2 changed files with 2 additions and 4 deletions

View file

@ -383,8 +383,7 @@ def main():
# Commit the result
commitMessage = "jetbrains.plugins: update"
print("#### Committing changes... ####")
run(['git', 'add', PLUGINS_FILE], check=True)
run(['git', 'commit', '--file=-'], input=commitMessage.encode(), check=True)
run(['git', 'commit', f'-m{commitMessage}', '--', f'{PLUGINS_FILE}'], check=True)
if __name__ == '__main__':

View file

@ -122,8 +122,7 @@ for name in toVersions.keys():
# Commit the result
logging.info("#### Committing changes... ####")
subprocess.run(['git', 'add', versions_file_path], check=True)
subprocess.run(['git', 'commit', '--file=-'], input=commitMessage.encode(), check=True)
subprocess.run(['git', 'commit', f'-m{commitMessage}', '--', f'{versions_file_path}'], check=True)
logging.info("#### Updating plugins ####")
plugin_script = current_path.joinpath("plugins/update_plugins.py").resolve()