Skip to content

Commit 7133e3e

Browse files
committed
Is it okay
1 parent 1aaba87 commit 7133e3e

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/deployment.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
sed -i 's/openapi: "3.1.0"/openapi: "3.0.0"/' $file
2525
done
2626
- name: Generate
27-
run: |
28-
mkdir dist;
29-
npx @openapitools/openapi-generator-cli batch typescript-fetch.yaml
27+
run: npx @openapitools/openapi-generator-cli batch typescript-fetch.yaml
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v3
30+
with:
31+
commit-message: Migrate OpenAPI spec from solvedac/unofficial-documentation
32+
title: Migrate OpenAPI Specification from solvedac/unofficial-documentation
33+
body: |
34+
This Pull Request will update the typescript sources.
35+
It is automatically created by GitHub Actions.
36+
labels: automated

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unofficial-documentation

typescript-fetch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
inputSpec: "unofficial-documentation/src/openapi.yaml"
22
generatorName: "typescript-fetch"
3-
outputDir: "dist"
3+
outputDir: "src"
44
validateSpec: false
55
generateAliasAsModel: true
66
additionalProperties:

0 commit comments

Comments
 (0)