Skip to content

Commit

Permalink
Feat/37 API Docs file type json to yaml (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkJeongseop authored Sep 4, 2023
1 parent 2dca718 commit 7d03676
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/generate-open-api-document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,29 @@ jobs:
- name: Check the deployed service URL
uses: jtalk/url-health-check-action@v3
with:
url: http://localhost:8080/api-docs
url: http://localhost:8080/api-docs.yaml
max-attempts: 10
retry-delay: 5s
retry-all: true

- name: Create json file
run: |
curl -o docs/open-api.json http://localhost:8080/api-docs
curl -o docs/open-api.yaml http://localhost:8080/api-docs.yaml
- name: Commit changes
run: |
git config --global user.name 'Git Actions'
git config --global user.email 'no-reply@github.com'
git add docs/open-api.json
git add docs/open-api.yaml
if git status | grep -ic "Changes to be committed:"; then
echo "Committing changes"
git commit -m "docs: update open-api.json"
git commit -m "docs: update open-api.yaml"
git push
else
echo "No changes"
fi
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down
run: docker-compose -f "docker-compose.yml" down
1 change: 0 additions & 1 deletion docs/open-api.json

This file was deleted.

Loading

0 comments on commit 7d03676

Please sign in to comment.