From a26937caf62dba16c6b3a6c7fa3ff93c88801ac4 Mon Sep 17 00:00:00 2001 From: Ryan Albert <42415738+ryan-timothy-albert@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:20:58 -0700 Subject: [PATCH] feat: restore dd telemetry for sdk publish (#175) --- .github/workflows/sdk-publish.yaml | 72 ++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/.github/workflows/sdk-publish.yaml b/.github/workflows/sdk-publish.yaml index e4f7aa6a..ada70f92 100644 --- a/.github/workflows/sdk-publish.yaml +++ b/.github/workflows/sdk-publish.yaml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 }}