Skip to content

Commit

Permalink
ci: change version extract regex
Browse files Browse the repository at this point in the history
  • Loading branch information
RanolP committed Apr 27, 2024
1 parent cdc4cb2 commit 75d1a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/follow-up.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 75d1a19

Please sign in to comment.