From 8ae083340c15d127cdc2a4faeece756b1b83a461 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 12 Feb 2025 21:04:14 +0100 Subject: [PATCH 1/2] Automatically update the CLI version in the README --- .github/workflows/release-pr.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 1a3c557a..570b5ee4 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -24,6 +24,7 @@ jobs: run: | echo "${{ github.event.inputs.version }}" > VERSION sed -i -E "s/VERSION=(.*)/VERSION=\"${{ github.event.inputs.version }}\"/" install.sh + sed -i -E "s/\d+\.\d+\.\d+/${{ github.event.inputs.version }}/g" README.md - name: Create a release pull request id: cpr From b962c26f76e4d38a4fb407a70f13930c29edceb6 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 12 Feb 2025 21:07:27 +0100 Subject: [PATCH 2/2] Use character classes --- .github/workflows/release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 570b5ee4..e4bea71f 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -24,7 +24,7 @@ jobs: run: | echo "${{ github.event.inputs.version }}" > VERSION sed -i -E "s/VERSION=(.*)/VERSION=\"${{ github.event.inputs.version }}\"/" install.sh - sed -i -E "s/\d+\.\d+\.\d+/${{ github.event.inputs.version }}/g" README.md + sed -i -E "s/[0-9]+\.[0-9]+\.[0-9]+/${{ github.event.inputs.version }}/g" README.md - name: Create a release pull request id: cpr