From 7324f91c1ff78f3e02fa33cdd673ab991fd73071 Mon Sep 17 00:00:00 2001 From: James Armes Date: Thu, 10 Oct 2024 14:25:19 -0400 Subject: [PATCH] =?UTF-8?q?bump:=20version=200.1.0=20=E2=86=92=200.1.1=20(?= =?UTF-8?q?#1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-test.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-test.yaml b/.github/workflows/release-test.yaml index 356b764..93b25d7 100644 --- a/.github/workflows/release-test.yaml +++ b/.github/workflows/release-test.yaml @@ -51,4 +51,12 @@ jobs: - name: Checkout source code uses: actions/checkout@v4 - name: Print commit message - run: echo ${{ github.event.head_commit.message }} + run: echo '${{ github.event.head_commit.message }}' + - name: Determine the new version number + id: version + shell: bash + run: | + [[ $MSG =~ ^bump:.+([0-9]+\.[0-9+]\.[0-9]+[a-z0-9.\-]*)[[:space:]]\\(#[0-9]+\\) ]] + echo "version=${BASH_REMATCH[2]}" >> $GITHUB_OUTPUT + - name: Output the new version number + run: echo '${{ steps.version.outputs.version }}'