From 949a177d641284f160b1f3c26c65565d8c955620 Mon Sep 17 00:00:00 2001 From: "J. Zane Cook" <90814067+jzanecook@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:42:27 -0600 Subject: [PATCH] ci(docs): Remove doc-related workflow (moved to agentprotocol.ai repo) --- .github/workflows/update-docs.yaml | 54 ------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 .github/workflows/update-docs.yaml diff --git a/.github/workflows/update-docs.yaml b/.github/workflows/update-docs.yaml deleted file mode 100644 index f8b0a950..00000000 --- a/.github/workflows/update-docs.yaml +++ /dev/null @@ -1,54 +0,0 @@ -name: Regenerate Endpoints docs on change - -on: - push: - paths: - - 'schemas/openapi.yml' - -permissions: - contents: write - -jobs: - build: - runs-on: ubuntu-latest - defaults: - run: - working-directory: docs/ - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - uses: actions/setup-node@v1 - with: - node-version: '16.x' - - run: npm i - - run: npm run generateEndpoints - - - name: Commit changes - run: | - git config --global user.email "no-reply@github.com" - git config --global user.name "GitHub Actions" - git commit -am "Update endpoint docs" || echo "No changes to commit" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Install swagger-cli - run: | - npm install -g swagger-cli - npm install -g openapi-format - - - name: Lint and Convert openapi.yml to openapi.json and commit changes - run: | - cd .. - npx openapi-format schemas/openapi.yml --output schemas/openapi.yml - swagger-cli bundle -r schemas/openapi.yml -o schemas/openapi.json -t json - - git config --global user.email "no-reply@github.com" - git config --global user.name "GitHub Actions" - git add schemas/openapi.yml - git add schemas/openapi.json - git commit -am "Lint OpenAPI schemas" || echo "No changes to commit" - git push - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}