From 62de322a6a3b43f3873f87dec567fc21b2511be0 Mon Sep 17 00:00:00 2001 From: RanolP Date: Sat, 27 Apr 2024 22:37:28 +0900 Subject: [PATCH] ci: alter version rule --- .github/workflows/follow-up.yaml | 2 +- openapitools.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/follow-up.yaml b/.github/workflows/follow-up.yaml index e606ebd..5677996 100644 --- a/.github/workflows/follow-up.yaml +++ b/.github/workflows/follow-up.yaml @@ -31,7 +31,7 @@ jobs: - name: Update Version run: | file=unofficial-documentation/tsp-output/@typespec/openapi3/openapi.yaml - version=$(sed -rn 's/\s+version:\s*"([^"]+)"/\1/p' $file | sed -rn 's/\.0+([0-9]+)/.\1/p') + version=$(sed -rn 's/\s+version:\s*([^\n]+)/\1/p' $file | sed -rn 's/\.0+([0-9]+)/.\1/p') sed -ri ":a;N;\$!ba;s/\"solvedac_api\"\nversion = \"[^\"]+\"/\"solvedac_api\"\nversion = \"$version\"/" Cargo.toml - name: Move Generated Files run: | diff --git a/openapitools.json b/openapitools.json index 601ac1d..747eaf0 100644 --- a/openapitools.json +++ b/openapitools.json @@ -1,5 +1,4 @@ { - "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { "version": "5.2.1"