Skip to content

Commit

Permalink
readme and icon generator need to run in git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 17, 2019
1 parent 31f1f86 commit 26a0991
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/oca_github_bot/tasks/main_branch_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def _gen_addons_readme(org, repo, branch, cwd):
cwd,
"--commit",
]
check_call(gen_addon_readme_cmd, cwd=".")
check_call(gen_addon_readme_cmd, cwd=cwd)


@switchable("gen_addons_icon")
def _gen_addons_icon(org, repo, branch, cwd):
_logger.info("oca-gen-addon-icon in %s/%s@%s", org, repo, branch)
gen_addon_icon_cmd = ["oca-gen-addon-icon", "--addons-dir", cwd, "--commit"]
check_call(gen_addon_icon_cmd, cwd=".")
check_call(gen_addon_icon_cmd, cwd=cwd)


@switchable("setuptools_odoo")
Expand All @@ -56,7 +56,7 @@ def _setuptools_odoo_make_default(org, repo, branch, cwd):
"--clean",
"--commit",
]
check_call(make_default_setup_cmd, cwd=".")
check_call(make_default_setup_cmd, cwd=cwd)


def main_branch_bot_actions(org, repo, branch, cwd):
Expand Down

0 comments on commit 26a0991

Please sign in to comment.