Skip to content

Commit

Permalink
ADD: generate user data
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-marie authored Apr 30, 2024
1 parent 4c0df78 commit d27ab1f
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/create-user-mongo-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,36 @@ env:
MONGODB_ATLAS_PRIVATE_API_KEY: ${{ secrets.PRIVATE_API_KEY }}
MONGODB_ATLAS_ORG_ID: '6630fe6c4a18910569ad5e79'
jobs:
gen-data:
runs-on: ubuntu-latest
steps:
- id: 'generate-db-id'
name: 'generate db id'
uses: 'yakubique/[email protected]'
with:
min: 111111
max: 999999
- id: 'generate-db-pw'
uses: aammirmirza/[email protected]
with:
length: 15
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
create-project-name: ${{ steps.generate-db-id.outputs.number }}
- 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
project-id: ${{ steps.generate-db-id.outputs.number }}
cluster-name: ${{ steps.generate-db-id.outputs.number }}
username: ${{ steps.generate-db-id.outputs.number }}
password: ${{ steps.generate-db-pw.outputs.password }}
- name: Retrieve Connection String
shell: bash
run: |
Expand Down

0 comments on commit d27ab1f

Please sign in to comment.