Skip to content

Commit

Permalink
fix cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenzing committed Sep 4, 2024
1 parent c843a25 commit 87ae22e
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 4,497 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,13 @@ jobs:
echo "New swagger.yaml files found:"
cat new_swagger_files.txt
- name: Create index.html for new swagger.yaml files
- name: Handle new swagger file
run: |
# Create index.html for each new swagger.yaml found
while IFS= read -r file; do
dir=$(dirname "$file")
cp utils/default_swagger_index_page.html "$dir/index.html"
echo -e "$version\n$(cat $dir/hosted_versions.txt)" > "$dir/hosted_versions.txt"
done < new_swagger_files.txt
- name: Commit and push changes
Expand Down
Loading

0 comments on commit 87ae22e

Please sign in to comment.