Skip to content

Commit 6a539f5

Browse files
committed
fix: rename run-workflow to generate everywhere
✻ Clauded...
1 parent f650c55 commit 6a539f5

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/test-composite-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
github_access_token: ${{ secrets.BOT_REPO_TOKEN }}
2626
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
27-
action: run-workflow
27+
action: generate
2828
mode: pr
2929
force: "true"
3030
- name: Verify outputs
@@ -61,7 +61,7 @@ jobs:
6161
with:
6262
github_access_token: ${{ secrets.BOT_REPO_TOKEN }}
6363
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
64-
action: run-workflow
64+
action: generate
6565
mode: direct
6666
force: "true"
6767
- name: Verify outputs

action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ inputs:
5353
required: false
5454
action:
5555
description: |-
56-
The current action step to run, valid options are 'run-workflow', 'release', or 'tag', defaults to 'run-workflow'.
56+
The current action step to run, valid options are 'generate', 'release', or 'tag', defaults to 'generate'.
5757
This is intended to be used along with the `mode` input to determine the current action step to run.
58-
- 'run-workflow' will generate the SDK and commit the changes to the branch.
58+
- 'generate' will generate the SDK and commit the changes to the branch.
5959
- 'release' will create a release on Github.
6060
- 'tag' will tag the registry images with the provided tags.
6161
default: "generate"
@@ -275,11 +275,7 @@ runs:
275275
shell: bash
276276
working-directory: ${{ inputs.working_directory || '.' }}
277277
run: |
278-
ACTION="${{ inputs.action }}"
279-
if [ "$ACTION" = "run-workflow" ]; then
280-
ACTION="generate"
281-
fi
282-
speakeasy ci $ACTION
278+
speakeasy ci ${{ inputs.action }}
283279
env:
284280
# Speakeasy auth/config
285281
SPEAKEASY_API_KEY: ${{ inputs.speakeasy_api_key }}

0 commit comments

Comments
 (0)