Skip to content

Commit 5a29783

Browse files
Fix sed regex: use case-insensitive hex match with length constraint
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent dda27a3 commit 5a29783

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/bump-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
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."

0 commit comments

Comments
 (0)