Skip to content

Commit

Permalink
add db id generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-marie authored Apr 23, 2024
1 parent 22e7734 commit 3f3e3ef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/create-user-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- id: 'generate-db-id'
name: 'generate db id'
uses: 'yakubique/random-number@v1.1'
with:
min: 111111
max: 999999
- id: 'auth'
name: 'auth'
uses: 'google-github-actions/auth@v2'
Expand All @@ -21,4 +27,4 @@ jobs:
name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
- name: 'Use gcloud CLI to create DB'
run: 'gcloud sql databases create testDB3 --instance=idp-postgres-db'
run: 'gcloud sql databases create ${{ steps.generate-db-id.outputs.number }} --instance=idp-postgres-db'

0 comments on commit 3f3e3ef

Please sign in to comment.