Skip to content

Commit 2b0db7c

Browse files
committed
chore: Update workflows and gen files
1 parent 923749e commit 2b0db7c

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
@@ -88,7 +88,7 @@ jobs:
8888
notify:
8989
needs: test
9090
runs-on: ubuntu-latest
91-
if: always()
91+
if: ${{ contains(needs.*.result, 'failure') }}
9292
steps:
9393
- name: Slack Notification
9494
uses: rtCamp/action-slack-notify@v2
@@ -101,6 +101,6 @@ jobs:
101101
SLACK_MSG_AUTHOR: gr4vy-code
102102
SLACK_ICON_EMOJI: ":gr4vy:"
103103
SLACK_COLOR: "${{ contains(needs.*.result, 'failure') && 'failure' || 'success' }}"
104-
SLACK_MESSAGE_ON_SUCCESS: "CI passed - `${{ github.event.head_commit.message }}`"
105-
SLACK_MESSAGE_ON_FAILURE: "CI failed - `${{ github.event.head_commit.message }}`"
104+
SLACK_MESSAGE_ON_SUCCESS: "CI passed"
105+
SLACK_MESSAGE_ON_FAILURE: "CI failed"
106106
SLACK_FOOTER: ""

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
notify:
3535
needs: generate
3636
runs-on: ubuntu-latest
37-
if: always()
37+
if: ${{ contains(needs.*.result, 'failure') }}
3838
steps:
3939
- name: Slack Notification
4040
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: Gr4vy
44
maintainOpenAPIOrder: true
55
usageSnippets:
6-
optionalPropertyRendering: withExample
6+
optionalPropertyRendering: never
77
sdkInitStyle: constructor
88
useClassNamesForArrayFields: true
99
fixes:
Lines changed: 3 additions & 1 deletion
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)