Skip to content

Commit

Permalink
another dynamic ip attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
brycefrank committed Sep 25, 2024
1 parent 1f45982 commit 5cbaf84
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/db.update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ jobs:
MONGODB_PROJECT_ID: ${{secrets.MONGODB_PROJECT_ID}}
run: |
curl --location "https://cloud.mongodb.com/api/atlas/v1.0/groups/$MONGODB_PROJECT_ID/accessList" \
--digest -u "$MONGO_API_PUBLIC:$MONGO_API_PRIVATE"
--header "Content-Type: application/json"
--data "[
--digest -u "$MONGO_API_PUBLIC:$MONGO_API_PRIVATE" \
--header "Content-Type: application/json" \
--data '[
{
"ipAddress": "'$IP_ADDRESS'/32",
"ipAddress": "'$RUNNER_IP'/32",
"comment": "Added via GitHub db-update action"
}
]
"
'
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 5cbaf84

Please sign in to comment.