Skip to content

Commit 62de322

Browse files
committed
ci: alter version rule
1 parent f9d202e commit 62de322

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/follow-up.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Update Version
3232
run: |
3333
file=unofficial-documentation/tsp-output/@typespec/openapi3/openapi.yaml
34-
version=$(sed -rn 's/\s+version:\s*"([^"]+)"/\1/p' $file | sed -rn 's/\.0+([0-9]+)/.\1/p')
34+
version=$(sed -rn 's/\s+version:\s*([^\n]+)/\1/p' $file | sed -rn 's/\.0+([0-9]+)/.\1/p')
3535
sed -ri ":a;N;\$!ba;s/\"solvedac_api\"\nversion = \"[^\"]+\"/\"solvedac_api\"\nversion = \"$version\"/" Cargo.toml
3636
- name: Move Generated Files
3737
run: |

openapitools.json

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
32
"spaces": 2,
43
"generator-cli": {
54
"version": "5.2.1"

0 commit comments

Comments
 (0)