Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: introduce runs-on parameter #194

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Speakeasy SDK Publish Workflow
on:
workflow_call:
inputs:
runs-on:
description: The GitHub Action Runner
default: ubuntu-latest
required: false
type: string
speakeasy_server_url:
required: false
description: "Internal use only"
Expand Down Expand Up @@ -69,7 +74,7 @@ on:
jobs:
release:
name: Create Github Release
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
outputs:
publish_python: ${{ steps.release.outputs.publish_python }}
publish_typescript: ${{ steps.release.outputs.publish_typescript }}
Expand Down Expand Up @@ -137,7 +142,7 @@ jobs:
publish-pypi:
if: ${{ needs.release.outputs.python_regenerated == 'true' && needs.release.outputs.publish_python == 'true' }}
name: Publish Python SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down Expand Up @@ -218,7 +223,7 @@ jobs:
publish-npm:
if: ${{ needs.release.outputs.typescript_regenerated == 'true' && needs.release.outputs.publish_typescript == 'true' }}
name: Publish Typescript SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down Expand Up @@ -280,7 +285,7 @@ jobs:
publish-java:
if: ${{ needs.release.outputs.java_regenerated == 'true' && needs.release.outputs.publish_java == 'true' }}
name: Publish Java SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down Expand Up @@ -357,7 +362,7 @@ jobs:
publish-packagist:
if: ${{ needs.release.outputs.php_regenerated == 'true' && needs.release.outputs.publish_php == 'true' }}
name: Publish PHP SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down Expand Up @@ -414,7 +419,7 @@ jobs:
publish-nuget:
if: ${{ needs.release.outputs.csharp_regenerated == 'true' && needs.release.outputs.publish_csharp == 'true' }}
name: Publish C# SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down Expand Up @@ -471,7 +476,7 @@ jobs:
publish-terraform:
if: ${{ needs.release.outputs.terraform_regenerated == 'true' && needs.release.outputs.publish_terraform == 'true' }}
name: Publish Terraform Provider
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
steps:
- name: Tune GitHub-hosted runner network
Expand Down Expand Up @@ -539,7 +544,7 @@ jobs:
publish-gems:
if: ${{ needs.release.outputs.ruby_regenerated == 'true' && needs.release.outputs.publish_ruby == 'true' }}
name: Publish Ruby SDK
runs-on: ubuntu-latest
runs-on: ${{ inputs.runs-on }}
needs: release
defaults:
run:
Expand Down
Loading