-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
admin
committed
Jul 24, 2024
1 parent
1c293cb
commit 4bd840e
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
name: Sync OpenAPI definition to ReadMe | ||
# This GitHub Actions workflow was auto-generated by the `rdme` cli on 2024-07-24T13:04:54.653Z | ||
# You can view our full documentation here: https://docs.readme.com/docs/rdme | ||
name: ReadMe GitHub Action 🦉 | ||
|
||
# Run workflow for every push to the `main` branch | ||
on: | ||
push: | ||
branches: | ||
# This workflow will run every time you push code to the following branch: `main` | ||
# Check out GitHub's docs for more info on configuring this: | ||
# https://docs.github.com/actions/using-workflows/events-that-trigger-workflows | ||
- main | ||
|
||
jobs: | ||
sync: | ||
rdme-openapi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout this repo | ||
uses: actions/checkout@v4 | ||
- name: Check out repo 📚 | ||
uses: actions/checkout@v3 | ||
|
||
# Run GitHub Action to sync OpenAPI file at ./path-to-file.json | ||
- name: GitHub Action | ||
# We recommend specifying a fixed version, i.e. @v8 | ||
# Docs: https://docs.github.com/actions/using-workflows/workflow-syntax-for-github-actions#example-using-versioned-actions | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi src/test/resources/openapi.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.API_DEFINITION_ID }} | ||
- name: Run `openapi` command 🚀 | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi src/test/resources/openapi.yaml --key=${{ secrets.README_API_KEY }} --id=${{ secrets.API_DEFINITION_ID }} |