We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7785da commit a556668Copy full SHA for a556668
entrypoint.py
@@ -72,7 +72,15 @@
72
github_slug,
73
)
74
75
- git_repo.git.checkout('HEAD', b=gh_branch)
+ git_refs = git_repo.remotes.origin.refs
76
+ git_refs_name = list(map(lambda x: str(x).split('/')[-1], git_refs))
77
+
78
+ logging.debug(git_refs_name)
79
80
+ if gh_branch not in git_refs_name:
81
+ git_repo.git.checkout(b=gh_branch)
82
+ else:
83
+ git_repo.git.checkout(gh_branch)
84
85
# Generate metadata
86
deb_file_handle = DebFile(filename=deb_file_path)
@@ -99,7 +107,6 @@
99
107
100
108
apt_action_metadata = list(map(lambda x: json.loads(x[0]), apt_action_metadata_str))
101
109
102
- logging.debug(list(all_commit))
103
110
logging.debug(all_apt_action_commit)
104
111
logging.debug(apt_action_metadata_str)
105
112
0 commit comments