Skip to content

Update option when installing a custom integration #193

Update option when installing a custom integration

Update option when installing a custom integration #193

Workflow file for this run

name: OpenAPI
on:
push:
paths:
- 'core-api/rest/**'
- '.github/workflows/openapi.yml'
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- 'core-api/rest/**'
- '.github/workflows/openapi.yml'
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
validate:
name: Validate OpenAPI
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Validate with redocli CLI
run: |
docker pull redocly/cli
docker run --rm -v $PWD/core-api/rest:/spec -e REDOCLY_TELEMETRY=false redocly/cli lint UCR-core-openapi.yaml
publish:
name: Publish GitHub pages
if: github.ref == 'refs/heads/main' || contains(github.ref, 'tags/v')
runs-on: ubuntu-latest
needs: [ validate ]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Prepare GH page deployment
run: |
cp ./core-api/rest/UCR-core-openapi.yaml ./core-api/rest/swagger-ui
- name: Deploy core API GH page
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./core-api/rest/swagger-ui
target-folder: ./rest