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;