Skip to content

Commit

Permalink
DX-894 Rdme V10 OpenAPI Specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuscal-Ashman committed Jan 29, 2025
1 parent e6ae594 commit edb58c4
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/CI-pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Sync API Ref to Production

on:
workflow_dispatch:
inputs:
deploy_tag:
description: "Input tag version to deploy"
required: true
default: ""
pull_request:
branches:
- v3.0
types:
- opened
- closed

jobs:
DeployProd:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
uses: actions/checkout@v4

# Sync OpenAPI file to ReadMe
- name: Upload OpenAPI Spec to ReadMe
uses: readmeio/rdme@v10
with:
rdme: openapi upload ./reference/core.json --key=${{ secrets.README_API_KEY }} --version=3.0

- name: Send deployment notification to Slack
id: slack
uses: slackapi/[email protected]
with:
webhook-type: 'incoming-webhook'
payload: |
{
"text": "Deployment status: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Deployment status: ${{ job.status }}\nActor: ${{ github.actor }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEPLOYMENT_WEBHOOK }}

0 comments on commit edb58c4

Please sign in to comment.