Skip to content

Commit

Permalink
chore: capability to pass in a custom github action runner (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney authored Sep 19, 2024
1 parent 2afc16f commit 30b1fdd
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/workflow-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Speakeasy SDK Generation Workflow
on:
workflow_call:
inputs:
runs-on:
description: The GitHub Action Runner
default: ubuntu-latest
required: false
type: string
speakeasy_version:
description: The version of the Speakeasy CLI to use or "latest"
default: latest
Expand Down Expand Up @@ -121,7 +126,7 @@ on:
jobs:
run-workflow:
name: Generate Target
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
outputs:
commit_hash: ${{ steps.run-workflow.outputs.commit_hash }}
publish_python: ${{ steps.run-workflow.outputs.publish_python }}
Expand Down Expand Up @@ -212,7 +217,7 @@ jobs:
needs.run-workflow.outputs.publish_python == 'true'
&& inputs.mode != 'pr' }}
name: Publish Python SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down Expand Up @@ -301,7 +306,7 @@ jobs:
needs.run-workflow.outputs.publish_typescript == 'true'
&& inputs.mode != 'pr' }}
name: Publish Typescript SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down Expand Up @@ -371,7 +376,7 @@ jobs:
needs.run-workflow.outputs.publish_java == 'true'
&& inputs.mode != 'pr' }}
name: Publish Java SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down Expand Up @@ -457,7 +462,7 @@ jobs:
needs.run-workflow.outputs.publish_ruby == 'true'
&& inputs.mode != 'pr' }}
name: Publish Ruby SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down Expand Up @@ -532,7 +537,7 @@ jobs:
needs.run-workflow.outputs.publish_csharp == 'true'
&& inputs.mode != 'pr' }}
name: Publish C# SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down Expand Up @@ -597,7 +602,7 @@ jobs:
needs.run-workflow.outputs.publish_php == 'true'
&& inputs.mode != 'pr' }}
name: Publish PHP SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: [run-workflow]
defaults:
run:
Expand Down

0 comments on commit 30b1fdd

Please sign in to comment.