Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Commit 4b769a0

Browse files
committed
on_push: Consider event associated with either "master" or "main" branches
1 parent c7c4844 commit 4b769a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

github-circleci-trigger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ def on_push(data):
141141
source_event = {'type': 'push'}
142142
payload = {'repo': repo, 'branch': branch, 'tag': tag, 'revision': data["head_commit"]["id"]}
143143

144-
# Only consider Push event associated with update to 'master' branch
144+
# Only consider Push event associated with update to 'main' or `master` branches
145145
# or tags.
146-
if branch != 'master' and not tag:
146+
if branch not in ['main', 'master'] and not tag:
147147
app.logger.info("Ignoring %s associated with %s" % (source_event, payload))
148148
return
149149

0 commit comments

Comments
 (0)