@@ -133,7 +133,7 @@ jobs:
133133 echo "version=$VERSION" >> $GITHUB_OUTPUT
134134 echo "prior-version=$PRIOR_VERSION" >> $GITHUB_OUTPUT
135135
136- update-apidiff-baseline-to-released-version :
136+ update-apidiff-baseline-and-docs- to-released-version :
137137 permissions :
138138 contents : write # for git push to PR branch
139139 runs-on : ubuntu-latest
@@ -187,6 +187,13 @@ jobs:
187187 ./gradlew --refresh-dependencies japicmp
188188 git add docs/apidiffs
189189
190+ - name : Update versions in README.md
191+ env :
192+ VERSION : ${{ needs.release.outputs.version }}
193+ run : |
194+ ./gradlew updateVersionInDocs -Prelease.version=$VERSION
195+ git add README.md
196+
190197 - name : Use CLA approved bot
191198 run : .github/scripts/use-cla-approved-github-bot.sh
192199
@@ -202,9 +209,9 @@ jobs:
202209 # not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
203210 GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
204211 run : |
205- message="Update apidiff baseline to released version $VERSION"
206- body="Update apidiff baseline to released version \`$VERSION\`."
207- branch="otelbot/update-apidiff-baseline-to-released-version-${VERSION}"
212+ message="Update apidiff baseline and documentation versions to released version $VERSION"
213+ body="Update apidiff baseline and documentation versions to released version \`$VERSION\`."
214+ branch="otelbot/update-apidiff-baseline-and-documentation- to-released-version-${VERSION}"
208215
209216 git checkout -b $branch
210217 git commit -m "$message"
0 commit comments