Skip to content

Commit 01668dd

Browse files
authored
Initial generation for reviewing purposes (#286)
Co-authored-by: David Coplowe <d.coplowe@codat.io>
1 parent 427f1b4 commit 01668dd

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

.github/workflows/sync_for_payables_generate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
mode: pr
1919
force: ${{ github.event.inputs.force }}
2020
publish_csharp: true
21-
dotnet_version: 6.x
21+
dotnet_version: 6.x # This can go?
2222
secrets:
2323
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2424
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Generate Sync for Payables version 1 library
2+
'on':
3+
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: Force generation of SDKs
7+
type: boolean
8+
default: false
9+
jobs:
10+
generate:
11+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
12+
with:
13+
speakeasy_version: latest
14+
openapi_doc_location: https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Sync-Payables-v1.yaml
15+
languages: |-
16+
- csharp: ./previous-versions/sync-for-payables-version-1
17+
create_release: true
18+
mode: pr
19+
force: ${{ github.event.inputs.force }}
20+
publish_csharp: true
21+
dotnet_version: 6.x # This can go?
22+
secrets:
23+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
24+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
25+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Sync for Payables library version 1 library
2+
'on':
3+
push:
4+
paths:
5+
- previous-versions/sync-for-payables-version-1/RELEASES.md
6+
branches:
7+
- main
8+
jobs:
9+
publish:
10+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v14
11+
with:
12+
create_release: true
13+
publish_csharp: true
14+
secrets:
15+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
16+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
17+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
18+
nuget_api_key: ${{ secrets.NUGET_API_KEY }}

previous-versions/sync-for-payables-version-1/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ csharp:
2525
inputModelSuffix: input
2626
maxMethodParams: 0
2727
outputModelSuffix: output
28-
packageName: Codat.Sync.Payables
28+
packageName: Codat.Sync.Payables.V1

0 commit comments

Comments
 (0)