Skip to content

Commit

Permalink
update publish collections
Browse files Browse the repository at this point in the history
Signed-off-by: rohitthakur2590 <[email protected]>
  • Loading branch information
rohitthakur2590 committed Aug 22, 2023
1 parent 52b3d33 commit ee3a6ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/ansible.scm.git_publish_module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Parameters
<td>
</td>
<td>
<div>The token used to identify a specific release</div>
<div>Specify the tag details associated with the commit.</div>
</td>
</tr>
<tr>
Expand Down
11 changes: 4 additions & 7 deletions plugins/action/git_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ee3a6ad

Please sign in to comment.