Skip to content

Commit db90c54

Browse files
committed
instead of prefix, use full version
1 parent b51213f commit db90c54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66

77
workflow_dispatch: # Keep manual trigger
88
inputs:
9-
rc_version:
10-
description: 'RC version number (e.g., 1, 2, 3)'
9+
version:
10+
description: 'Version number (e.g. 0.0.63.dev20250111)'
1111
required: true
1212
type: string
1313

@@ -26,13 +26,13 @@ jobs:
2626
- name: Update version for manual RC
2727
if: github.event_name == 'workflow_dispatch'
2828
run: |
29-
sed -i 's/version = "\([^"]*\)"/version = "\1rc${{ inputs.rc_version }}"/' pyproject.toml
30-
sed -i 's/__version__ = "\([^"]*\)"/__version__ = "\1rc${{ inputs.rc_version }}"/' src/llama_stack_client/_version.py
29+
sed -i 's/version = "\([^"]*\)"/version = "${{ inputs.version }}"/' pyproject.toml
30+
sed -i 's/__version__ = "\([^"]*\)"/__version__ = "${{ inputs.version }}"/' src/llama_stack_client/_version.py
3131
- name: Update version for repository_dispatch
3232
if: github.event_name == 'repository_dispatch' && github.event.client_payload.source == 'llama-stack-nightly'
3333
run: |
34-
sed -i 's/version = "\([^"]*\)"/version = "\1${{ github.event.client_payload.version }}"/' pyproject.toml
35-
sed -i 's/__version__ = "\([^"]*\)"/__version__ = "\1${{ github.event.client_payload.version }}"/' src/llama_stack_client/_version.py
34+
sed -i 's/version = "\([^"]*\)"/version = "${{ github.event.client_payload.version }}"/' pyproject.toml
35+
sed -i 's/__version__ = "\([^"]*\)"/__version__ = "${{ github.event.client_payload.version }}"/' src/llama_stack_client/_version.py
3636
- name: Set up Python
3737
uses: actions/setup-python@v5
3838
with:

0 commit comments

Comments
 (0)