Skip to content

Commit 23de7f9

Browse files
committed
Bug 1539610 [wpt PR 16076] - Log GH event when tagging master, a=testonly
Automatic update from web-platform-tests Log GH event when tagging master (#16076) -- wpt-commits: a960bbaf56c87d3239ec2d6476282110584079da wpt-pr: 16076 UltraBlame original commit: e20dbaca122ae7c003823f3bc32ac08bb7893b6e
1 parent 44301fd commit 23de7f9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testing/web-platform/tests/tools/ci/tag_master.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,21 @@ def create_release(owner, repo, sha, tag, summary, body):
129129
def should_run_action():
130130
with open(os.environ["GITHUB_EVENT_PATH"]) as f:
131131
event = json.load(f)
132+
logger.info(json.dumps(event, indent=2))
132133

133134
if "pull_request" in event:
134135
logger.info("Not tagging for PR")
135136
return False
136137
if event.get("ref") != "refs/heads/master":
137-
logger.info("Not tagging for non-master branch")
138+
logger.info("Not tagging for ref %s" % event.get("ref"))
138139
return False
139140
return True
140141

141142

142143
def main():
143144
repo_key = "GITHUB_REPOSITORY"
144-
should_run = should_run_action()
145145

146-
if not should_run:
147-
logger.info("Not tagging master for this push")
146+
if not should_run_action():
148147
return
149148

150149
owner, repo = os.environ[repo_key].split("/", 1)

0 commit comments

Comments
 (0)