Skip to content

Commit

Permalink
chore: introduce runs-on parameter (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney authored Jan 2, 2025
1 parent 16e5fb5 commit b29e2c3
Showing 1 changed file with 13 additions and 8 deletions.
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

0 comments on commit b29e2c3

Please sign in to comment.