Skip to content

Commit

Permalink
fix(delete-pr-preview): use config yaml file from master branch
Browse files Browse the repository at this point in the history
use gitopsconfig of master branch to prevent issues with deleted branches
  • Loading branch information
m4rc0z committed Jul 30, 2020
2 parents 19319b8 + f33c557 commit 2b1936c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gitopscli/commands/delete_pr_preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ def delete_pr_preview_command(
apps_tmp_dir,
)

apps_git.checkout(branch)
logging.info("App repo branch %s checkout successful", branch)
app_master_branch_name = "master"
apps_git.checkout(app_master_branch_name)
logging.info("App repo branch %s checkout successful", app_master_branch_name)
try:
gitops_config = GitOpsConfig(apps_git.get_full_file_path(".gitops.config.yaml"))
except FileNotFoundError as ex:
Expand Down

0 comments on commit 2b1936c

Please sign in to comment.