Skip to content

Commit dd4f250

Browse files
committed
fix(ci): do not try to build already cached checks
1 parent e0bfe74 commit dd4f250

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/github-matrix.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,14 @@ def clean_package_for_output(pkg: GitHubActionPackage) -> dict:
231231
gh_action_packages = [
232232
{**pkg, "postgresql_version": pkg["attr"].split(".")[-3]}
233233
for pkg in gh_action_packages
234-
if is_extension_pkg(pkg) and not pkg["already_cached"]
234+
if is_extension_pkg(pkg)
235235
]
236236

237237
# Group packages by system
238238
grouped_by_system = defaultdict(list)
239239
for pkg in gh_action_packages:
240-
grouped_by_system[pkg["system"]].append(clean_package_for_output(pkg))
240+
if not pkg["already_cached"]:
241+
grouped_by_system[pkg["system"]].append(clean_package_for_output(pkg))
241242

242243
# Create output with system-specific matrices
243244
gh_output = {}

0 commit comments

Comments
 (0)