Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, the breaking changes workflow is failing for push events ([example](https://github.com/DataDog/opentelemetry-mapping-go/actions/runs/4678758871)). This is due to the fact that `github.head_ref` is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target` (see [doc](https://docs.github.com/en/actions/learn-github-actions/contexts#:~:text=GitHub%20GraphQL%20API.-,github.head_ref,-string)). - link to [push events](https://github.com/DataDog/opentelemetry-mapping-go/actions?query=event%3Apush) ❌ - link to [pull_request events](https://github.com/DataDog/opentelemetry-mapping-go/actions?query=event%3Apull_request) ✅ This PR modifies the breaking changes workflow to only run when the event_name is `pull_request`.
- Loading branch information