Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/publish-oceanbase-cli-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- 'release_oceanbase_cli_*'
workflow_dispatch:
inputs:
version:
description: 'Optional version override for the published package (leave empty to use oceanbase-cli/pyproject.toml)'
required: false
type: string

permissions:
contents: read
Expand All @@ -19,6 +25,16 @@ jobs:
with:
python-version: '3.11'

- name: Override package version
if: github.event_name == 'workflow_dispatch' && inputs.version != ''
working-directory: oceanbase-cli
run: |
sed -i 's/^version = ".*"/version = "${{ inputs.version }}"/' pyproject.toml

- name: Show package version
working-directory: oceanbase-cli
run: grep '^version' pyproject.toml

- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
Loading