Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop automatic git commits of schema-reference.md #998

Merged
merged 3 commits into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/schema.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ name: Deploy Website
on:
push:
branches:
- master
- 'master'
tags:
- 'web*'
paths:
- 'website/**'
- 'docker/docs/layout.js'
jrcheli marked this conversation as resolved.
Show resolved Hide resolved
- 'docs/schemas/**'
jobs:
website:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Checkout Repository"
uses: actions/checkout@v3

- name: "Build schema-reference.md"
run: make docs-generate

- name: "Website Deploy"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down
4 changes: 4 additions & 0 deletions docker/docs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ cd schemas
for schema_file in *.schema.json; do
[ -f "$schema_file" ] || break
json-dereference -s "$schema_file" -o $TMP_DIR_NAME/"$schema_file"
if [ ! -f $TMP_DIR_NAME/"$schema_file" ]; then
echo "Error during resolving references in following file: $schema_file"
exit 1
fi
done

echo "Finished resolving references in JSON Schema"
Expand Down
Loading