You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix release validation to parse YAML instead of grepping comments
The validate-packages-yml job was using grep to check for git hash
references in packages.yml, which also matched commented-out lines.
This caused the release to fail even though the actual YAML config
was correct.
Replace the grep-based validation with a Python script that properly
parses the YAML, ignoring comments and only checking actual package
entries.
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
if grep -q 'git: https://github.com/elementary-data/dbt-data-reliability.git' "$PACKAGES_FILE"; then
22
-
echo "::error::packages.yml contains a git hash reference for dbt-data-reliability. Releases must use a proper package version (e.g. 'package: elementary-data/elementary' with a 'version:' field). Please update packages.yml before releasing."
23
-
exit 1
24
-
fi
25
-
if ! grep -q 'package: elementary-data/elementary' "$PACKAGES_FILE"; then
26
-
echo "::error::packages.yml does not contain a proper package reference for elementary-data/elementary. Please update packages.yml before releasing."
27
-
exit 1
28
-
fi
29
-
echo "packages.yml validation passed - using proper package version reference."
0 commit comments