File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6767 if grep -q 'git: https://github.com/elementary-data/dbt-data-reliability.git' "$PACKAGES_FILE"; then
6868 echo "Found git hash reference in packages.yml, converting to package version format..."
6969 # Replace the git+revision block with a package+version block using a placeholder version
70- sed -i '/- git: https:\/\/github.com\/elementary-data\/dbt-data-reliability.git/{N;s/- git: https:\/\/github.com\/elementary-data\/dbt-data-reliability.git\n revision: [a-f0-9]* /- package: elementary-data\/elementary\n version: 0.0.0/}' "$PACKAGES_FILE"
70+ sed -i '/- git: https:\/\/github.com\/elementary-data\/dbt-data-reliability.git/{N;s/- git: https:\/\/github.com\/elementary-data\/dbt-data-reliability.git\n revision: [a-fA-F0-9]\{7,40\} /- package: elementary-data\/elementary\n version: 0.0.0/}' "$PACKAGES_FILE"
7171 echo "Converted to package format with placeholder version."
7272 else
7373 echo "packages.yml already uses package version format."
You can’t perform that action at this time.
0 commit comments