Skip to content

Commit f352a25

Browse files
committed
chore: Update workflows and gen files
1 parent b1f4cf8 commit f352a25

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
notify:
7979
needs: test
8080
runs-on: ubuntu-latest
81-
if: always()
81+
if: ${{ contains(needs.*.result, 'failure') }}
8282
steps:
8383
- name: Slack Notification
8484
uses: rtCamp/action-slack-notify@v2
@@ -91,6 +91,6 @@ jobs:
9191
SLACK_MSG_AUTHOR: gr4vy-code
9292
SLACK_ICON_EMOJI: ":gr4vy:"
9393
SLACK_COLOR: "${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}"
94-
SLACK_MESSAGE_ON_SUCCESS: "CI passed - `${{ github.event.head_commit.message }}`"
95-
SLACK_MESSAGE_ON_FAILURE: "CI failed - `${{ github.event.head_commit.message }}`"
94+
SLACK_MESSAGE_ON_SUCCESS: "CI passed"
95+
SLACK_MESSAGE_ON_FAILURE: "CI failed"
9696
SLACK_FOOTER: ""

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
notify:
4040
needs: generate
4141
runs-on: ubuntu-latest
42-
if: always()
42+
if: ${{ contains(needs.*.result, 'failure') }}
4343
steps:
4444
- name: Slack Notification
4545
uses: rtCamp/action-slack-notify@v2

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ generation:
33
sdkClassName: SDK
44
maintainOpenAPIOrder: true
55
usageSnippets:
6-
optionalPropertyRendering: withExample
6+
optionalPropertyRendering: never
77
sdkInitStyle: constructor
88
useClassNamesForArrayFields: true
99
fixes:
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
overlay: 1.0.0
22
x-speakeasy-jsonpath: rfc9535
33
info:
4-
title: Remove unwanted timeout_in_seconds params
4+
title: Remove unwanted headers
55
version: 0.0.1
66
actions:
77
- target: $.paths.*.*.parameters[?(@.name=="timeout_in_seconds")]
8+
remove: true
9+
- target: $.paths.*.*.parameters[?(@.name=="application_name")]
810
remove: true

.speakeasy/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ sources:
1212
- location: ./.speakeasy/overlays/mid-global.yaml
1313
- location: ./.speakeasy/overlays/fix-base-model.yaml
1414
- location: ./.speakeasy/overlays/fix-checkout-session-body.yaml
15-
- location: ./.speakeasy/overlays/fix-remove-timeout-in-seconds.yaml
15+
- location: ./.speakeasy/overlays/fix-remove-unwanted-headers.yaml
1616
registry:
1717
location: registry.speakeasyapi.dev/gr4vy/gr4vy/openapi
1818
targets:

0 commit comments

Comments
 (0)