Skip to content

Merge pull request #225 from mattrent/miniSL-integration #71

Merge pull request #225 from mattrent/miniSL-integration

Merge pull request #225 from mattrent/miniSL-integration #71

Workflow file for this run

# Copyright 2022 Giuseppe De Palma, Matteo Trentin
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Generate API SDK
on:
push:
paths:
- "openapi/openapi.yaml"
workflow_dispatch:
jobs:
sdk-gen:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: OpenAPI Generator Action
uses: openapi-generators/openapitools-generator-action@v1.4.0
with:
generator: "go"
openapi-file: openapi/openapi.yaml
command-args: "--git-repo-id fl-client-sdk-go --git-user-id funlessdev --global-property skipFormModel=false"
- name: Pushes to fl-client-sdk-go
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: go-client/
destination-github-username: "funlessdev"
destination-repository-name: "fl-client-sdk-go"
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY