Skip to content

Commit

Permalink
Push gateway OAS to the dev site
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianrbz committed Jan 23, 2025
1 parent a2d9843 commit c339265
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/raise-pr-on-change.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"kong/developer.konghq.com": [
{
"src": "api-specs/Gateway-EE/3.4/kong-ee-3.4.yaml",
"dest": "api-specs/gateway/admin-ee/3.4/openapi.yaml"
},
{
"src": "api-specs/Gateway-EE/3.5/kong-ee-3.5.yaml",
"dest": "api-specs/gateway/admin-ee/3.5/openapi.yaml"
},
{
"src": "api-specs/Gateway-EE/3.6/kong-ee-3.6.yaml",
"dest": "api-specs/gateway/admin-ee/3.6/openapi.yaml"
},
{
"src": "api-specs/Gateway-EE/3.7/kong-ee-3.7.yaml",
"dest": "api-specs/gateway/admin-ee/3.7/openapi.yaml"
},
{
"src": "api-specs/Gateway-EE/3.8/kong-ee-3.8.yaml",
"dest": "api-specs/gateway/admin-ee/3.8/openapi.yaml"
},
{
"src": "api-specs/Gateway-EE/3.9/kong-ee-3.9.yaml",
"dest": "api-specs/gateway/admin-ee/3.9/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.4/kong-oss-3.4.yaml",
"dest": "api-specs/gateway/admin-oss/3.4/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.5/kong-oss-3.5.yaml",
"dest": "api-specs/gateway/admin-oss/3.5/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.6/kong-oss-3.6.yaml",
"dest": "api-specs/gateway/admin-oss/3.6/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.7/kong-oss-3.7.yaml",
"dest": "api-specs/gateway/admin-oss/3.7/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.8/kong-oss-3.8.yaml",
"dest": "api-specs/gateway/admin-oss/3.8/openapi.yaml"
},
{
"src": "api-specs/Gateway-OSS/3.9/kong-oss-3.9.yaml",
"dest": "api-specs/gateway/admin-oss/3.9/openapi.yaml"
}
]
}
24 changes: 24 additions & 0 deletions .github/workflows/push-oas-downstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push OAS Downstream
on:
pull_request:
types: [closed]
branches: [main]

jobs:
raise-pr-on-change:
if: github.event.pull_request.merged == true
name: Raise PR on change
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Raise PR on change
uses: mheap/raise-pr-on-change-action@v1
with:
token: ${{ secrets.PAT }}
configFile: ".github/raise-pr-on-change.json"
prBranch: automated-update
targetBranch: main
prTitle: "feat(sdk): automated oas update - from docs repo"
prBody: "Generated OAS files from docs.konghq.com"
commitMessage: "feat(sdk): automated oas update from docs.konghq.com"

0 comments on commit c339265

Please sign in to comment.