move version into a package so it can be referenced by external code.

This commit is contained in:
Brian Hendriks
2024-04-09 15:58:23 -07:00
parent 02b3213b49
commit 8024adb53f
3 changed files with 20 additions and 18 deletions

View File

@@ -59,7 +59,7 @@ jobs:
- name: Update dolt version command
run: sed -i -e 's/ Version = ".*"/ Version = "'"$NEW_VERSION"'"/' "$FILE"
env:
FILE: ${{ format('{0}/go/cmd/dolt/dolt.go', github.workspace) }}
FILE: ${{ format('{0}/go/cmd/dolt/doltversion/version.go', github.workspace) }}
NEW_VERSION: ${{ needs.format-version.outputs.version }}
- name: Set minver TBD to version
run: sed -i -e 's/minver:"TBD"/minver:"'"$NEW_VERSION"'"/' "$FILE"