-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install readme globally in github action (#21)
Co-authored-by: Shreyaschorge <[email protected]>
- Loading branch information
1 parent
368a912
commit 30a1a32
Showing
1 changed file
with
16 additions
and
11 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 |
---|---|---|
|
@@ -12,20 +12,25 @@ jobs: | |
- name: Check out repo π | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create symlink for v2 spec | ||
run: ln -s $GITHUB_WORKSPACE/src/v2 $GITHUB_WORKSPACE/src/v2/recommendation/v2 | ||
# Install rdme globally | ||
- name: Install rdme | ||
run: npm install -g [email protected] | ||
|
||
# Setting the working directory for all steps to './src' | ||
- name: Run `openapi` command for v1 spec π | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi src/v1/spec.yaml --key=${{ secrets.README_API_KEY }} --id=65313d8d196216005b2ed13e | ||
env: | ||
README_API_KEY: ${{ secrets.README_API_KEY }} | ||
working-directory: ./src | ||
run: rdme openapi v1/spec.yaml --key=$README_API_KEY --id=65313d8d196216005b2ed13e | ||
|
||
- name: Run `openapi` command for v2 spec π | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi src/v2/spec.yaml --key=${{ secrets.README_API_KEY }} --id=653140896cad5a001321c86f | ||
env: | ||
README_API_KEY: ${{ secrets.README_API_KEY }} | ||
working-directory: ./src | ||
run: rdme openapi v2/spec.yaml --key=$README_API_KEY --id=653140896cad5a001321c86f | ||
|
||
- name: Run `openapi` command for v2 recommendation spec π | ||
uses: readmeio/rdme@v8 | ||
with: | ||
rdme: openapi src/v2/recommendation/spec.yaml --key=${{ secrets.README_API_KEY }} --id=6537721ac0ccd40031482643 | ||
env: | ||
README_API_KEY: ${{ secrets.README_API_KEY }} | ||
working-directory: ./src | ||
run: rdme openapi v2/recommendation/spec.yaml --key=$README_API_KEY --id=6537721ac0ccd40031482643 |