From 194a484595a49592e607e5ed0ae3a37451f41fcc Mon Sep 17 00:00:00 2001 From: Tom Keller Date: Fri, 8 May 2026 10:15:08 -0700 Subject: [PATCH] chore: automate README version bumping Closes #1420. --- .github/workflows/release-please.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 42fc714..d53e6eb 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -53,10 +53,24 @@ if: ${{ steps.release.outputs.release_created }} run: | git config user.name "GitHub Actions" - git config user.email "github-aws-sdk-osds-automation@amazon.com + git config user.email "github-aws-sdk-osds-automation@amazon.com" if git rev-parse "v${{ steps.release.outputs.major }}" >/dev/null 2>&1; then git tag -d "v${{ steps.release.outputs.major }}" git push origin ":v${{ steps.release.outputs.major }}" fi git tag -a "v${{ steps.release.outputs.major }}" -m "Release v${{ steps.release.outputs.major }}" git push origin "v${{ steps.release.outputs.major }}" + + - name: Update README version references + if: ${{ steps.release.outputs.release_created }} + run: | + sed -i 's|configure-aws-credentials@v[0-9]*\.[0-9]*\.[0-9]*|configure-aws-credentials@${{ steps.release.outputs.tag_name }}|g' README.md + if git diff --quiet README.md; then + echo "README already up to date" + else + echo "::add-mask::${{ env.OSDS_ACCESS_TOKEN }}" + git remote set-url origin https://${{ env.OSDS_ACCESS_TOKEN }}@github.com/aws-actions/configure-aws-credentials.git + git add README.md + git commit -m "docs: update README version references to ${{ steps.release.outputs.tag_name }}" + git push --force origin + fi