Use this workflow to push data to Stoplight CLI projects from your GitHub repository
When there's a push made to the default branch
or branches starting with design/
OR when a pull request is made in the repository on any branch
AND
When theres a change in json
,yaml
,yml
or md
files
- Create a
.github/workflows
folder in your repository - Copy the
stoplight-cli-workflow.yml
file into the.github/workflows
folder you created in Step 1 - Add your project CI token on Line 28. You can get the CI token from the project settings of a CLI project.
- Add your project URL on Line 30. You can get the project URL from the browser bar. e.g.
https://your-workspace.stoplight.io/project-name
. - Create a PR to see it work