Skip to content

Commit c1b4fe9

Browse files
Makes the dirs and try finding user id for docker runs.
1 parent c9e6134 commit c1b4fe9

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/actions/build-sdk/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ runs:
1818
run: npm ci
1919
shell: bash
2020

21+
- name: make ts folder
22+
working-directory: ./sdk
23+
shell: bash
24+
run: mkdir typescript
25+
26+
- name: make python folder
27+
working-directory: ./sdk
28+
shell: bash
29+
run: mkdir python
30+
2131
- name: Build sdks
2232
working-directory: ./sdk
2333
shell: bash

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
"build": "npm run generate",
4646
"generate": "npm run generate:ts && npm run generate:python",
4747
"generate-dependencies": "npm run generate-dependencies --workspaces --if-present",
48-
"generate:python": "docker run --rm --user 1000 -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g python -o /local/sdk/python --skip-validate-spec",
49-
"generate:ts": "docker run --rm --user 1000 -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g typescript -o /local/sdk/typescript --skip-validate-spec",
48+
"generate:python": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g python -o /local/sdk/python --skip-validate-spec",
49+
"generate:ts": "docker run --rm --user $(id -u) -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/specification/api/notify-supplier.yml -g typescript -o /local/sdk/typescript --skip-validate-spec",
5050
"lint": "npm run lint --workspaces",
5151
"lint:fix": "npm run lint:fix --workspaces",
5252
"start": "npm run start --workspace frontend",

sdk/_config.version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: 0.0.1-20250703.073203+92f0ec0
1+
version: 0.0.1-20250703.074729+c9e6134

0 commit comments

Comments
 (0)