Skip to content

Commit

Permalink
instead of prefix, use full version
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Jan 10, 2025
1 parent b51213f commit db90c54
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:

workflow_dispatch: # Keep manual trigger
inputs:
rc_version:
description: 'RC version number (e.g., 1, 2, 3)'
version:
description: 'Version number (e.g. 0.0.63.dev20250111)'
required: true
type: string

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

0 comments on commit db90c54

Please sign in to comment.