Skip to content

Commit a05696b

Browse files
committed
Update documentation with release version in README and jbang-example
1 parent 301e51b commit a05696b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/publish-maven.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,20 @@ jobs:
9191
echo "- **Release version:** $RELEASE_VERSION" >> $GITHUB_STEP_SUMMARY
9292
echo "- **Next development version:** $DEV_VERSION" >> $GITHUB_STEP_SUMMARY
9393
94+
- name: Update documentation with release version
95+
run: |
96+
VERSION="${{ steps.versions.outputs.release_version }}"
97+
98+
# Update version in README.md
99+
sed -i "s|<version>[0-9]*\.[0-9]*\.[0-9]*</version>|<version>${VERSION}</version>|g" README.md
100+
sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" README.md
101+
102+
# Update version in jbang-example.java
103+
sed -i "s|copilot-sdk:[0-9]*\.[0-9]*\.[0-9]*|copilot-sdk:${VERSION}|g" jbang-example.java
104+
105+
# Stage the documentation changes (will be committed by release:prepare)
106+
git add README.md jbang-example.java
107+
94108
- name: Prepare Release
95109
run: |
96110
mvn -B release:prepare \

0 commit comments

Comments
 (0)