diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93dfa59..e8c2380 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,6 +55,11 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: git cliff --config ./cliff.toml --bump -o ./CHANGELOG.md + - name: Update README.md version + if: steps.check-changes.outputs.has-changes == 'true' + run: | + sed -i -E 's|https://github.com/space-code/validator.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/validator.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md + echo "Updated README.md with version ${{ steps.next-version.outputs.NEXT_VERSION }}" - name: Get release notes id: release-notes if: steps.check-changes.outputs.has-changes == 'true'