File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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 : |
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
You can’t perform that action at this time.
0 commit comments