Skip to content

Commit bbbcd08

Browse files
Jammy2211claude
authored andcommitted
Auto-update workspace README versions during release
The release_workspaces job now seds the version string in each workspace README.rst before committing, so workspace READMEs always reference the current release version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 14120ef commit bbbcd08

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,13 @@ jobs:
623623
workspace:
624624
- repository: Jammy2211/autofit_workspace
625625
name: autofit
626+
package: PyAutoFit
626627
- repository: Jammy2211/autogalaxy_workspace
627628
name: autogalaxy
629+
package: PyAutoGalaxy
628630
- repository: Jammy2211/autolens_workspace
629631
name: autolens
632+
package: PyAutoLens
630633
steps:
631634
- uses: actions/checkout@v2
632635
if: "${{ github.event.inputs.skip_release != 'true' }}"
@@ -650,6 +653,14 @@ jobs:
650653
if: "${{ github.event.inputs.skip_release != 'true' }}"
651654
run: |
652655
pip install jupyter ipynb-py-convert PyYAML
656+
- name: Update version in README
657+
if: "${{ github.event.inputs.skip_release != 'true' }}"
658+
run: |
659+
VERSION="${{ needs.version_number.outputs.version_number }}"
660+
PACKAGE="${{ matrix.workspace.package }}"
661+
pushd workspace
662+
sed -i "s/$PACKAGE v[0-9]\{4\}\.[0-9]*\.[0-9]*\.[0-9]*/$PACKAGE v$VERSION/g" README.rst README.md 2>/dev/null || true
663+
git add README.rst README.md 2>/dev/null || true
653664
- name: Update jupyter notebooks
654665
if: "${{ github.event.inputs.skip_release != 'true' }}"
655666
run: |
@@ -658,7 +669,7 @@ jobs:
658669
pushd workspace
659670
python3 "$AUTOBUILD_PATH/generate.py" ${{ matrix.workspace.name }}
660671
git add *.ipynb
661-
git commit -m "Updated notebooks" || true
672+
git commit -m "Release ${{ needs.version_number.outputs.version_number }}: update notebooks and version" || true
662673
- name: Release
663674
if: "${{ github.event.inputs.skip_release != 'true' }}"
664675
run: |

0 commit comments

Comments
 (0)