Send Telemetry after Other Workflow Example #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Send Telemetry after Other Workflow Example | |
| on: | |
| workflow_run: | |
| # Specify the workflows you want to collect telemetry. | |
| workflows: | |
| - Example Workflow 01 | |
| - Example Workflow 02 | |
| - Example Workflow 03 | |
| types: | |
| - completed | |
| permissions: | |
| # Required for private repositories | |
| actions: read | |
| jobs: | |
| send-telemetry: | |
| name: Send CI Telemetry | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run | |
| id: run | |
| uses: paper2/github-actions-opentelemetry@main | |
| env: | |
| OTEL_EXPORTER_OTLP_ENDPOINT: | |
| ${{ secrets.OTEL_EXPORTER_OTLP_ENDPOINT }} | |
| OTEL_SERVICE_NAME: github-actions-opentelemetry | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |