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

[new] scripts/update-schema-latest #3791

Closed

Conversation

TakahikoKawasaki
Copy link

This script does the following.

  1. Switch to the 'gh-pages' branch.

  2. Copy "schemas/v{major}.{minor}/schema.json" in the 'main' branch to "oas/{major}.{minor}/schema/{YYYY-MM-DD}" in the 'gh-pages' branch. The value of {YYYY-MM-DD} is extracted from the '$id' property in the schema.json file.

  3. Create a symbolic link "latest" under "oas/{major}.{minor}/schema" that points to the "{YYYY-MM-DD}" file.

  4. Copy "schemas/v{major}.{minor}/schema-base.json" in the 'main' branch to "oas/{major}.{minor}/schema-base/{YYYY-MM-DD}" in the 'gh-pages' branch. The value of {YYYY-MM-DD} is extracted from the '$id' property in the schema-base.json file.

  5. Create a symbolic link "latest" under "oas/{major}.{minor}/schema-base" that points to the "{YYYY-MM-DD}" file.

This script does the following.

  1. Switch to the 'gh-pages' branch.

  2. Copy "schemas/v{major}.{minor}/schema.json" in the 'main' branch to
     "oas/{major}.{minor}/schema/{YYYY-MM-DD}" in the 'gh-pages' branch.
     The value of {YYYY-MM-DD} is extracted from the '$id' property in
     the schema.json file.

  3. Create a symbolic link "latest" under "oas/{major}.{minor}/schema"
     that points to the "{YYYY-MM-DD}" file.

  4. Copy "schemas/v{major}.{minor}/schema-base.json" in the 'main' branch to
     "oas/{major}.{minor}/schema-base/{YYYY-MM-DD}" in the 'gh-pages' branch.
     The value of {YYYY-MM-DD} is extracted from the '$id' property in
     the schema-base.json file.

  5. Create a symbolic link "latest" under "oas/{major}.{minor}/schema-base"
     that points to the "{YYYY-MM-DD}" file.
@TakahikoKawasaki
Copy link
Author

A shell script version is here --> PR #3815

@handrews
Copy link
Contributor

Replaced by #3815

@handrews handrews closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants