From 719065b2348c13864228a70dca6ed9372b1b3b78 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sat, 13 Apr 2024 19:27:32 +0100 Subject: [PATCH 1/2] ci: fix auto release --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b21676f..08d09e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Get the release version from the tag if: env.VERSION == '' - run: echo "VERSION=$(echo ${{ github.ref_name }} | sed s/v\(.*\)-.*/\1/)" >> $GITHUB_ENV + run: echo "VERSION=$(echo ${{ github.ref_name }}" | sed s/v\(.*\)-.*/\1/) >> $GITHUB_ENV - name: Show the version run: | echo "version is: $VERSION" From 5b2e419e8892a6f3f457af593a07d0337815c9b2 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sat, 13 Apr 2024 19:31:25 +0100 Subject: [PATCH 2/2] fix --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08d09e6..fbaf50a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Get the release version from the tag if: env.VERSION == '' - run: echo "VERSION=$(echo ${{ github.ref_name }}" | sed s/v\(.*\)-.*/\1/) >> $GITHUB_ENV + run: echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/v\(.*\)-.*/\1/')" >> $GITHUB_ENV - name: Show the version run: | echo "version is: $VERSION"