Skip to content

Commit 3bde61c

Browse files
committed
update pypi release post check
1 parent 913f94b commit 3bde61c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pypi_release.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,20 @@ jobs:
7575
poetry-version: ${{ env.POETRY_VERSION }}
7676
working-directory: ${{ inputs.working-directory }}
7777
cache-key: core${{ matrix.python-version }}
78-
78+
- name: Get git tag
79+
uses: actions-ecosystem/action-get-latest-tag@v1
80+
id: get-latest-tag
81+
- name: Set docker tag
82+
env:
83+
VERSION: ${{ steps.get-latest-tag.outputs.tag }}
84+
run: |
85+
echo "VERSION=${VERSION#v}" >> $GITHUB_ENV
86+
7987
- name: Install minimal dependencies and import
8088
shell: bash
8189
run: |
8290
sleep 30
83-
poetry run pip install infinity-emb[server]
91+
poetry run pip install "infinity-emb[server]==${{ env.VERSION }}"
8492
poetry run infinity_emb --help
8593
poetry run python -c "import infinity_emb"
8694
# print version

0 commit comments

Comments
 (0)