Skip to content

Commit 785c23a

Browse files
danielkovclaude
andcommitted
refactor: inline sdk-suggestion.yaml composite action calls
Replace the stale v14-pinned `uses: speakeasy-api/sdk-generation-action@<sha>` references with direct `run: speakeasy ci suggest` and `run: speakeasy ci finalize-suggestion` calls. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 50c0926 commit 785c23a

File tree

1 file changed

+37
-19
lines changed

1 file changed

+37
-19
lines changed

.github/workflows/sdk-suggestion.yaml

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,30 @@ jobs:
6262
branch_name: ${{ steps.suggest.outputs.branch_name }}
6363
cli_output: ${{ steps.suggest.outputs.cli_output }}
6464
steps:
65+
- name: Install speakeasy CLI
66+
shell: bash
67+
run: curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
68+
env:
69+
SPEAKEASY_VERSION: ${{ inputs.speakeasy_version }}
6570
- id: suggest
66-
uses: speakeasy-api/sdk-generation-action@5da5280471a9f29218e177d357653e2ec94ce87a # v14
67-
with:
68-
speakeasy_version: ${{ inputs.speakeasy_version }}
69-
openapi_doc_auth_header: ${{ inputs.openapi_doc_auth_header }}
70-
openapi_doc_auth_token: ${{ secrets.openapi_doc_auth_token }}
71-
openapi_docs: ${{ inputs.openapi_docs }}
72-
openapi_doc_output: ${{ inputs.openapi_doc_output }}
73-
max_suggestions: ${{ inputs.max_suggestions }}
74-
github_access_token: ${{ secrets.github_access_token }}
75-
action: suggest
76-
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
77-
openai_api_key: ${{ secrets.openai_api_key }}
71+
shell: bash
72+
run: speakeasy ci suggest
73+
env:
74+
SPEAKEASY_API_KEY: ${{ secrets.speakeasy_api_key }}
75+
SPEAKEASY_ENVIRONMENT: github
76+
SPEAKEASY_RUN_LOCATION: action
77+
GIT_TERMINAL_PROMPT: "0"
78+
OPENAI_API_KEY: ${{ secrets.openai_api_key }}
79+
OPENAPI_DOC_AUTH_TOKEN: ${{ secrets.openapi_doc_auth_token }}
80+
INPUT_SPEAKEASY_VERSION: ${{ inputs.speakeasy_version }}
81+
INPUT_GITHUB_ACCESS_TOKEN: ${{ secrets.github_access_token }}
82+
INPUT_SPEAKEASY_API_KEY: ${{ secrets.speakeasy_api_key }}
83+
INPUT_OPENAPI_DOC_AUTH_HEADER: ${{ inputs.openapi_doc_auth_header }}
84+
INPUT_OPENAPI_DOC_AUTH_TOKEN: ${{ secrets.openapi_doc_auth_token }}
85+
INPUT_OPENAPI_DOCS: ${{ inputs.openapi_docs }}
86+
INPUT_OPENAPI_DOC_OUTPUT: ${{ inputs.openapi_doc_output }}
87+
INPUT_MAX_SUGGESTIONS: ${{ inputs.max_suggestions }}
88+
INPUT_OPENAI_API_KEY: ${{ secrets.openai_api_key }}
7889
- uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
7990
if: always() && env.SLACK_WEBHOOK_URL != ''
8091
with:
@@ -96,13 +107,20 @@ jobs:
96107
- suggest
97108
runs-on: ubuntu-latest
98109
steps:
99-
- id: Finalize
100-
uses: speakeasy-api/sdk-generation-action@5da5280471a9f29218e177d357653e2ec94ce87a # v14
101-
with:
102-
github_access_token: ${{ secrets.github_access_token }}
103-
action: finalize-suggestion
104-
branch_name: ${{ needs.suggest.outputs.branch_name }}
105-
cli_output: ${{ needs.suggest.outputs.cli_output }}
110+
- name: Install speakeasy CLI
111+
shell: bash
112+
run: curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh
113+
- id: finalize
114+
shell: bash
115+
run: speakeasy ci finalize
116+
env:
117+
SPEAKEASY_API_KEY: ${{ secrets.speakeasy_api_key }}
118+
SPEAKEASY_ENVIRONMENT: github
119+
SPEAKEASY_RUN_LOCATION: action
120+
GIT_TERMINAL_PROMPT: "0"
121+
INPUT_GITHUB_ACCESS_TOKEN: ${{ secrets.github_access_token }}
122+
INPUT_BRANCH_NAME: ${{ needs.suggest.outputs.branch_name }}
123+
INPUT_CLI_OUTPUT: ${{ needs.suggest.outputs.cli_output }}
106124
- uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
107125
if: always() && env.SLACK_WEBHOOK_URL != ''
108126
with:

0 commit comments

Comments
 (0)