Skip to content

Commit

Permalink
fix: fixes branded_preview.sh to run the version command with the c…
Browse files Browse the repository at this point in the history
…orrect branch name for prod + update readme with new badge (#152)
  • Loading branch information
andreaangiolillo committed Aug 9, 2024
1 parent f19f3ad commit 3895151
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/branded_preview.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
set -eou pipefail

foascli versions -s v2.json --env "${target_env:?}" -o versions.json

branch_name=${target_env:?}
if [[ "$branch_name" == "prod" ]]; then
branch_name="main"
fi

foascli versions -s v2.json --env "${branch_name:?}" -o versions.json
# Load versions from versions.json
versions=()

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# MongoDB Atlas Administration API (2.0) OpenAPI Specification
# MongoDB Atlas Administration API OpenAPI Specification 3.0
[![OpenAPI (jp)](https://img.shields.io/badge/openapi-click%20to%20preview-green?style=flat&logo=mongodb)](https://htmlpreview.github.io/?https://github.com/mongodb/openapi/blob/main/openapi/branded-preview.html)

This repository hosts the OpenAPI specification for the [Atlas Administration API (v2.0)](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/).

This repository hosts the OpenAPI specification for the [Atlas Administration API (2.0)](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/).

0 comments on commit 3895151

Please sign in to comment.