Skip to content

Commit b5f34c2

Browse files
committed
no infinite ci loop
1 parent d8378dd commit b5f34c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/sdk_generation_for_spec_change.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ permissions:
1515
set_version:
1616
description: optionally set a specific SDK version
1717
type: string
18-
push:
18+
pull_request:
19+
types: [closed]
1920
branches:
20-
- main
21+
- main
2122
paths:
2223
- .speakeasy/in.openapi.yaml
2324

2425
jobs:
2526
generate:
27+
if: github.event.pull_request.merged == true
2628
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
2729
with:
2830
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)