Skip to content

Commit 3f08f34

Browse files
Attempt to fix working directory
1 parent 79fcc32 commit 3f08f34

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/actions/cdk-deploy/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,19 +63,19 @@ runs:
6363

6464
- name: Install node dependencies
6565
shell: bash
66-
working-directory: infrastructure/aws
66+
working-directory: ${{ inputs.dir }}
6767
run: uv run npm install
6868

6969
- name: CDK Synth
7070
shell: bash
71-
working-directory: infrastructure/aws
71+
working-directory: ${{ inputs.dir }}
7272
run: uv run npm run cdk -- synth
7373

7474
- name: Deploy Test
7575
if: ${{ inputs.skip_deploy == 'false' }}
76-
id: deploy_titiler_cmr_stack
76+
id: deploy_titiler_cmr_stack
77+
working-directory: ${{ inputs.dir }}
7778
run: uv run cdk deploy --all --require-approval never --outputs-file ${HOME}/cdk-outputs.json
78-
working-directory: infrastructure/aws
7979
shell: bash
8080
env:
8181
TITILER_CMR_ROLE_ARN: $TITILER_CMR_READER_ROLE_ARN

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
needs: [define-environment]
3434
environment: ${{ needs.define-environment.outputs.env_name }}
3535
concurrency: ${{ needs.define-environment.outputs.env_name }}
36+
env:
37+
DIRECTORY: titiler-cmr
3638

3739
steps:
3840
- name: Checkout
@@ -50,6 +52,7 @@ jobs:
5052
- name: Run titiler-cmr deployment
5153
uses: "./.github/actions/cdk-deploy"
5254
with:
55+
dir: "${{ env.DIRECTORY }}/infrastructure/aws"
5356
env_aws_secret_name: ${{ vars.ENV_AWS_SECRET_NAME }}
5457
script_path: "./.github/workflows/generate_env_file.py"
5558

0 commit comments

Comments
 (0)