File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
api/client/python/scripts Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 9797 env :
9898 PY_SDK_RELEASE_VERSION : ${{ github.ref_name }}
9999 COMMIT_SHORT_SHA : ${{ steps.get-short-sha.outputs.id }}
100- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
100+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change 5353 env :
5454 PY_SDK_RELEASE_TAG : alpha
5555 COMMIT_SHORT_SHA : ${{ steps.get-short-sha.outputs.id }}
56- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
56+ POETRY_PYPI_TOKEN_PYPI : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ if [ -z "${PY_SDK_RELEASE_VERSION:-}" ]; then
1515 exit 1
1616 fi
1717
18- LATEST_VERSION=$( curl -s https://pypi.org/pypi/openmeter/json | grep -o ' "version":"[^"]*" ' | head -1 | cut -d ' " ' -f4 )
18+ LATEST_VERSION=$( curl -s https://pypi.org/pypi/openmeter/json | jq -r ' .releases | keys[] | select(test("a[0-9]+")) ' | sort -V | tail -1 )
1919 if [ -z " $LATEST_VERSION " ]; then
2020 PY_SDK_RELEASE_VERSION=" 1.0.0a0"
2121 else
You can’t perform that action at this time.
0 commit comments