Repository navigation
Releases: JR-1991/generate-sdrdm-api
Releases 路 JR-1991/generate-sdrdm-api
Release list
v3.1
v3
v2
v1
Software-driven RDM Python API Generator Action
This is a GitHub Action that generates Python API's from sdRDM markdown schemes and pushes them to the repository.
Note: If you want changes to be pushed to your repository, you need to grant action read and write access. This can be done in the
settings/actionstab of your repository.
Usage
# Generates API and pushes it to the root of the repository
- name: Generate sdRDM library
uses: JR-1991/generate-sdrdm-api@main
with:
library_name: "MyLibraryName"
schema_path: "./path/to/schema"
# Generates API and pushes it to the specified directory
- name: Generate sdRDM library
uses: JR-1991/generate-sdrdm-api@main
with:
library_name: "MyLibraryName"
schema_path: "./path/to/schema"
output_path: "./other/dir"
# Generates API and does not push it to the repository
- name: Generate sdRDM library
uses: JR-1991/generate-sdrdm-api@main
with:
library_name: "MyLibraryName"
schema_path: "./path/to/schema"
push: "false"Inputs
| INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| branch | string | true | "linking-refactor" |
The sdRDM branch to be used for the generated API. |
| library_name | string | true | "unstable" |
The name of the library to be generated. |
| out_dir | string | true | "./" |
Target directory for the generated API. |
| push | string | true | "true" |
Push the generated API to the specified branch. |
| schema | string | true | "false" |
Generate the sdRDM schema. |
| schema_out_dir | string | true | "./" |
Target directory for the generated schema. |
| schema_path | string | true | "./specifcations/" |
Path to the sdRDM schema. |
