Skip to content
Merged
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
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ runs:

if [ -z "${{ inputs.project-id }}" ]
then
atlas cluster create ${{ inputs.create-cluster-name }} ${CLUSTER_CONFIG}
atlas cluster create "${{ inputs.create-cluster-name }}" ${CLUSTER_CONFIG}
else
atlas cluster create ${{ inputs.create-cluster-name }} --projectId ${{ inputs.project-id }} ${CLUSTER_CONFIG}
atlas cluster create "${{ inputs.create-cluster-name }}" --projectId "${{ inputs.project-id }}" ${CLUSTER_CONFIG}
fi

- name: Delete Cluster
Expand All @@ -154,8 +154,8 @@ runs:
env:
ATLAS_GITHUB_ACTION: "true"
run: |
atlas cluster delete ${{ inputs.delete-cluster-name }} --force --projectId ${{ inputs.delete-project-id }}
if ! atlas cluster watch ${{ inputs.delete-cluster-name }} --projectId ${{ inputs.delete-project-id }} >/dev/null 2>&1; then
atlas cluster delete "${{ inputs.delete-cluster-name }}" --force --projectId "${{ inputs.delete-project-id }}"
if ! atlas cluster watch "${{ inputs.delete-cluster-name }}" --projectId "${{ inputs.delete-project-id }}" >/dev/null 2>&1; then
echo "Atlas Cluster '${{ inputs.delete-cluster-name }}' is deleted"
exit 0
fi
Expand All @@ -166,7 +166,7 @@ runs:
env:
ATLAS_GITHUB_ACTION: "true"
run: |
atlas project delete ${{ inputs.delete-project-id }} --force
atlas project delete "${{ inputs.delete-project-id }}" --force

- name: Setup
if: ${{ inputs.run-setup == 'true' && inputs.username && inputs.password }}
Expand Down