Metadata endpoints updt r #47
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
name: Docs | |
on: | |
pull_request: | |
paths: | |
- "**/examples.json" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Merge request && response examples | |
steps: | |
- name: git-checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Install dependencies | |
run: | | |
npm install -g pnpm@8.15.4 | |
pnpm install | |
- name: Merge request and responses | |
run: | | |
# Read the changed files from the previous step | |
node libs/example_merger.js merge docs/pages/api/indexer/indexer.gen.yaml docs/pages/api/metadata/metadata.gen.yaml docs/pages/api/marketplace/marketplace.gen.yaml | |
- name: Push changes | |
uses: 0xsequence/actions/git-commit@master | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN_GIT_COMMIT }} | |
with: | |
files: "docs/pages/api/**/*.gen.yaml" | |
branch: ${{ github.head_ref }} | |
pr_title: "[AUTOMATED] Merge examples and openapi docs" | |
## since openapi docs are generated and PR is automatically created there is no need to try create new one | |
pr_create: false | |
overwrite: true |