From 857702832e9179a220b01a08ae79676d49c75a3f Mon Sep 17 00:00:00 2001 From: Paul Schultz Date: Fri, 23 Sep 2022 15:00:54 -0500 Subject: [PATCH] Added working directory when running python script (#942) Signed-off-by: Paul Schultz --- .github/workflows/ci.yaml | 3 ++- .github/workflows/release-schema.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 88db55b40..1da07c0f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -98,8 +98,9 @@ jobs: run: echo ::set-output name=version::$(cat api-repo/schemas/latest/jsonSchemaVersion.txt) - name: Publish the new version on devfile-web + working-directory: devfile-web-repo/ run: | - 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 + python ./python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release - name: Push to the devfile/devfile-web repo working-directory: devfile-web-repo/ diff --git a/.github/workflows/release-schema.yaml b/.github/workflows/release-schema.yaml index b7ae53a87..97a59dd81 100644 --- a/.github/workflows/release-schema.yaml +++ b/.github/workflows/release-schema.yaml @@ -31,8 +31,9 @@ jobs: run: echo ::set-output name=version::$(cat api-repo/schemas/latest/jsonSchemaVersion.txt) - name: Release new version on devfile-web + working-directory: devfile-web-repo/ run: | - 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 + python ./python/src/api_workflow/api_workflow.py --version ${{ steps.get_version.outputs.version }} --devfile-schema api-repo/schemas/latest/devfile.json --release - name: Push to the devfile/devfile-web repo working-directory: devfile-web-repo/