Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create the ~/.aws/credentials file if it doesn’t exists #81

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ inputs:
runs:
using: 'composite'
steps:
- name: Create the AWS Credential file if required
run: touch ~/.aws/credentials
shell: bash
- name: Wait for stack update-complete
working-directory: ${{ inputs.working_dir }}
run: |
if [[ "${{ inputs.cdk_stack }}" != "*" ]]; then
aws cloudformation wait stack-update-complete --stack-name "${{ inputs.cdk_stack }}" 2>/dev/null || true
aws cloudformation --verbose wait stack-update-complete --stack-name "${{ inputs.cdk_stack }}" 2>/dev/null || true
fi
shell: bash

- name: Run aws-cdk
id: aws-cdk
working-directory: ${{ inputs.working_dir }}
run: |
npx -y cdk@${{ inputs.cdk_version }} ${{ inputs.cdk_subcommand }} ${{ inputs.cdk_extra_args }} "${{ inputs.cdk_stack }}"
npx -y cdk@${{ inputs.cdk_version }} ${{ inputs.cdk_subcommand }} --verbose ${{ inputs.cdk_extra_args }} "${{ inputs.cdk_stack }}"
shell: bash
branding:
icon: upload-cloud
Expand Down
Loading