Skip to content

Commit dc429a5

Browse files
committed
fixing CI
1 parent 1f83105 commit dc429a5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@ jobs:
4444
sed -i 's/^version = ".*"/version = "${{ steps.get_version.outputs.version }}"/' pyproject.toml
4545
echo "Updated pyproject.toml version to ${{ steps.get_version.outputs.version }}"
4646
47-
- name: Update version in __init__.py
47+
- name: Update version in package __init__.py and _cli.py
4848
run: |
49-
sed -i 's/^__version__ = ".*"/__version__ = "${{ steps.get_version.outputs.version }}"/' __init__.py
50-
echo "Updated __init__.py version to ${{ steps.get_version.outputs.version }}"
49+
sed -i 's/^ __version__ = ".*"/ __version__ = "${{ steps.get_version.outputs.version }}"/' generate_argument_specs/__init__.py
50+
sed -i 's/^ __version__ = ".*"/ __version__ = "${{ steps.get_version.outputs.version }}"/' generate_argument_specs/_cli.py
51+
echo "Updated package version fallbacks to ${{ steps.get_version.outputs.version }}"
5152
5253
- name: Commit version updates
5354
run: |
@@ -57,7 +58,7 @@ jobs:
5758
# Checkout the target branch
5859
git checkout ${{ github.event.release.target_commitish }}
5960
60-
git add pyproject.toml __init__.py
61+
git add pyproject.toml generate_argument_specs/__init__.py generate_argument_specs/_cli.py
6162
if git diff --staged --quiet; then
6263
echo "No changes to commit"
6364
exit 0

0 commit comments

Comments
 (0)