File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 - name : Bump version
6262 run : |
6363 sed -i 's/^version = "[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*"/version = "${{ inputs.cli-version }}"/' ./pyproject.toml
64- - name : Convert git hash reference to package version format (if needed)
65- run : |
66- PACKAGES_FILE="./elementary/monitor/dbt_project/packages.yml"
67- if grep -q 'git: https://github.com/elementary-data/dbt-data-reliability.git' "$PACKAGES_FILE"; then
68- echo "Found git hash reference in packages.yml, converting to package version format..."
69- # 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-fA-F0-9]\{7,40\}/- package: elementary-data\/elementary\n version: 0.0.0/}' "$PACKAGES_FILE"
71- echo "Converted to package format with placeholder version."
72- else
73- echo "packages.yml already uses package version format."
74- fi
7564 - name : Bump version for package (using input)
7665 if : ${{ needs.validate-version.outputs.validated-dbt-package-version != ''}}
7766 run : |
You can’t perform that action at this time.
0 commit comments