Skip to content

Commit 63d3cea

Browse files
authored
fix(ci): Python SDK token & latest version (#3596)
1 parent 1f58e45 commit 63d3cea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/release.yaml

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

.github/workflows/sdk-python-dev-release.yaml

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

api/client/python/scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)