From ee3a6ada8776175b3d0565fe42aa298ba16a4ff2 Mon Sep 17 00:00:00 2001 From: rohitthakur2590 Date: Tue, 22 Aug 2023 09:34:02 +0530 Subject: [PATCH] update publish collections Signed-off-by: rohitthakur2590 --- docs/ansible.scm.git_publish_module.rst | 2 +- plugins/action/git_publish.py | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/ansible.scm.git_publish_module.rst b/docs/ansible.scm.git_publish_module.rst index 00abc8a7..ccfe1070 100644 --- a/docs/ansible.scm.git_publish_module.rst +++ b/docs/ansible.scm.git_publish_module.rst @@ -150,7 +150,7 @@ Parameters -
The token used to identify a specific release
+
Specify the tag details associated with the commit.
diff --git a/plugins/action/git_publish.py b/plugins/action/git_publish.py index 13daadb7..b8ac57c1 100644 --- a/plugins/action/git_publish.py +++ b/plugins/action/git_publish.py @@ -269,19 +269,16 @@ def run( self._base_command = ("git", "-C", self._path_to_repo) self._timeout = self._task.args["timeout"] - steps = ( + steps = [ self._configure_git_user_name, self._configure_git_user_email, self._add, self._commit, - ) + ] if self._task.args.get("tag"): - steps = steps + (self._tag,) + steps.append(self._tag) - steps = steps + ( - self._push, - self._remove_repo, - ) + steps.extend([self._push, self._remove_repo]) for step in steps: step()