Skip to content

Commit

Permalink
feat: restore dd telemetry for sdk publish (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-timothy-albert authored Oct 10, 2024
1 parent 5c29f96 commit a26937c
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-pypi:
if: ${{ needs.release.outputs.python_regenerated == 'true' && needs.release.outputs.publish_python == 'true' }}
name: Publish Python SDK
Expand Down Expand Up @@ -187,6 +196,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-npm:
if: ${{ needs.release.outputs.typescript_regenerated == 'true' && needs.release.outputs.publish_typescript == 'true' }}
name: Publish Typescript SDK
Expand Down Expand Up @@ -235,6 +253,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-java:
if: ${{ needs.release.outputs.java_regenerated == 'true' && needs.release.outputs.publish_java == 'true' }}
name: Publish Java SDK
Expand Down Expand Up @@ -298,6 +325,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-packagist:
if: ${{ needs.release.outputs.php_regenerated == 'true' && needs.release.outputs.publish_php == 'true' }}
name: Publish PHP SDK
Expand Down Expand Up @@ -341,6 +377,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-nuget:
if: ${{ needs.release.outputs.csharp_regenerated == 'true' && needs.release.outputs.publish_csharp == 'true' }}
name: Publish C# SDK
Expand Down Expand Up @@ -384,6 +429,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-terraform:
if: ${{ needs.release.outputs.terraform_regenerated == 'true' && needs.release.outputs.publish_terraform == 'true' }}
name: Publish Terraform Provider
Expand Down Expand Up @@ -438,6 +492,15 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}
publish-gems:
if: ${{ needs.release.outputs.ruby_regenerated == 'true' && needs.release.outputs.publish_ruby == 'true' }}
name: Publish Ruby SDK
Expand Down Expand Up @@ -491,3 +554,12 @@ jobs:
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Run>"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- id: log-result
uses: speakeasy-api/sdk-generation-action@v15
if: always()
with:
github_access_token: ${{ secrets.github_access_token }}
action: log-result
speakeasy_api_key: ${{ secrets.speakeasy_api_key }}
working_directory: ${{ inputs.working_directory }}
speakeasy_server_url: ${{ inputs.speakeasy_server_url }}

0 comments on commit a26937c

Please sign in to comment.