Skip to content

Commit df033a5

Browse files
committed
Fix false empty-repo check in Homebrew workflow
1 parent 2af8320 commit df033a5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/homebrew-formula-pr.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ jobs:
123123
name = payload.get('full_name')
124124
permissions = payload.get('permissions') or {}
125125
default_branch = (payload.get('default_branch') or '').strip()
126-
repo_size = int(payload.get('size') or 0)
127126
configured_branch = (os.getenv('CFG_BASE_BRANCH') or '').strip()
128127
resolved_branch = configured_branch or default_branch
129128
@@ -137,9 +136,9 @@ jobs:
137136
"Grant contents write access for PR branch creation."
138137
)
139138
140-
if repo_size == 0 or not default_branch:
139+
if not default_branch:
141140
raise SystemExit(
142-
"Tap repository appears empty (no default branch). "
141+
"Tap repository has no default branch. "
143142
"Initialize it with an initial commit (for example README.md on main) "
144143
"and rerun the workflow."
145144
)

0 commit comments

Comments
 (0)