Skip to content

Commit 8577028

Browse files
authored
Added working directory when running python script (#942)
Signed-off-by: Paul Schultz <[email protected]>
1 parent 3af1002 commit 8577028

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ jobs:
9898
run: echo ::set-output name=version::$(cat api-repo/schemas/latest/jsonSchemaVersion.txt)
9999

100100
- name: Publish the new version on devfile-web
101+
working-directory: devfile-web-repo/
101102
run: |
102-
python devfile-web-repo/python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release
103+
python ./python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release
103104
104105
- name: Push to the devfile/devfile-web repo
105106
working-directory: devfile-web-repo/

.github/workflows/release-schema.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ jobs:
3131
run: echo ::set-output name=version::$(cat api-repo/schemas/latest/jsonSchemaVersion.txt)
3232

3333
- name: Release new version on devfile-web
34+
working-directory: devfile-web-repo/
3435
run: |
35-
python devfile-web-repo/python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release
36+
python ./python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release
3637
3738
- name: Push to the devfile/devfile-web repo
3839
working-directory: devfile-web-repo/

0 commit comments

Comments
 (0)