Skip to content

[WTEL-5890]

[WTEL-5890] #89

Workflow file for this run

on:
push:
branches:
- main
paths:
- swagger/**
jobs:
swagger-mix:
runs-on: ubuntu-latest
name: Merge a swagger files
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Checkout the code
uses: actions/checkout@v4
- name: Run generator
run:
go run github.com/msample/swagger-mixin@latest swagger/engine.swagger.json swagger/storage.swagger.json swagger/messages.swagger.json swagger/logger.swagger.json swagger/contacts.swagger.json swagger/webitel-go.swagger.json swagger/wfm.swagger.json swagger/knowledgebase.swagger.json swagger/cases.swagger.json > swagger/api.json
- name: Git add changes
if: always()
run:
git add swagger/api.json
- name: Push changes
if: always()
run: |
git config --global user.name 'webitel-bot'
git config --global user.email '[email protected]'
git commit -am "Automated swagger-mix generation"
git push