Skip to content

Commit

Permalink
Merge pull request #147 from gisce/ensure_deploy/patches_exist_before…
Browse files Browse the repository at this point in the history
…_diff_deployment

Ensure deploy/patches on first diff apply
  • Loading branch information
guilleJB authored Mar 8, 2024
2 parents fca1530 + 2815229 commit 644b8fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apply_pr/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ def parse_github_links_header(links_header):

@task
def export_diff_from_github(pr_number, owner='gisce', repository='erp'):
try:
local("mkdir -p %s" % 'deploy/patches')
except BaseException as e:
logger.error('Permission denied to write deploy/patches in the current directory')
raise
diff_path = "deploy/patches/{}.diff".format(pr_number)
tqdm.write('Exporting diff from Github')
headers = {
Expand Down

0 comments on commit 644b8fd

Please sign in to comment.