Skip to content

Commit

Permalink
ADD: initial example actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-marie authored Apr 30, 2024
1 parent 3c85cf5 commit 4c0df78
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/create-user-mongo-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,35 @@ on:
email:
description: where to send the email
required: true

env:
MONGODB_ATLAS_PUBLIC_API_KEY: ${{ secrets.PUBLIC_API_KEY }}
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.PRIVATE_API_KEY }}
MONGODB_ATLAS_ORG_ID: '6630fe6c4a18910569ad5e79'
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Setup AtlasCLI and create a project
id: create-project
uses: mongodb/[email protected]
with:
create-project-name: test-setup-project
- name: Run setup
id: setup
uses: mongodb/[email protected]
with:
run-setup: true
project-id: ${{ steps.create-project.outputs.create-project-id }}
cluster-name: test-cluster
username: test-user
password: test-password
- name: Retrieve Connection String
shell: bash
run: |
echo "${{ steps.setup.outputs.connection-string }}"
- name: Teardown
uses: mongodb/[email protected]
with:
delete-project-id: ${{ steps.create-project.outputs.create-project-id }}
delete-cluster-name: test-cluster

0 comments on commit 4c0df78

Please sign in to comment.