Add a check for user config set in the workflow

This commit is contained in:
Peter Evans 2019-12-27 18:29:33 +09:00
parent efbd4fa1ef
commit 4f8d5b9d3e
4 changed files with 84 additions and 16 deletions

View file

@ -134,9 +134,7 @@ def create_or_update_branch(repo, repo_url, commit_message, base, branch):
action = "updated"
print(f"Updated branch '{branch}'")
else:
print(
f"Branch '{branch}' is even with its remote and will not be updated"
)
print(f"Branch '{branch}' is even with its remote and will not be updated")
# Check if the pull request branch is ahead of the base
diff = is_ahead(repo, base, branch)