Fix docker.yaml double-quote version bug (#7452)

This commit is contained in:
Glenn Jocher 2024-01-10 03:25:35 +01:00 committed by GitHub
parent fe27db2f6e
commit b99113f83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ jobs:
- name: Retrieve Ultralytics version - name: Retrieve Ultralytics version
id: get_version id: get_version
run: | run: |
VERSION=$(grep "^__version__ =" ultralytics/__init__.py | awk -F"'" '{print $2}') VERSION=$(grep "^__version__ =" ultralytics/__init__.py | awk -F'"' '{print $2}')
echo "Retrieved Ultralytics version: $VERSION" echo "Retrieved Ultralytics version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT