From 75d1a1905a96afca3bdc748f500e856fdaa2d681 Mon Sep 17 00:00:00 2001 From: RanolP Date: Sat, 27 Apr 2024 20:47:35 +0900 Subject: [PATCH] ci: change version extract regex --- .github/workflows/follow-up.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/follow-up.yaml b/.github/workflows/follow-up.yaml index ee4c0d0..00868e3 100644 --- a/.github/workflows/follow-up.yaml +++ b/.github/workflows/follow-up.yaml @@ -31,7 +31,7 @@ jobs: run: npx @openapitools/openapi-generator-cli batch --clean rust.yaml - name: Update Version run: | - sed -ri ":a;N;\$!ba;s/\"solvedac_api\"\nversion = \"[^\"]+\"/\"solvedac_api\"\nversion = \"`sed -rn 's/^.* version: "([^"]+)".*$/\1/p' unofficial-documentation/tsp-output/@typespec/openapi3/openapi.yaml | sed -rn 's/\.0+([0-9]+)/.\1/p'`\"/" Cargo.toml + sed -ri ":a;N;\$!ba;s/\"solvedac_api\"\nversion = \"[^\"]+\"/\"solvedac_api\"\nversion = \"`sed -rn 's/^.* version: ([^\n]+).*$/\1/p' unofficial-documentation/tsp-output/@typespec/openapi3/openapi.yaml | sed -rn 's/\.0+([0-9]+)/.\1/p'`\"/" Cargo.toml - name: Move Generated Files run: | rm -rf src;