Skip to content

Commit 97c3664

Browse files
authored
Fix public-symbols-check workflow generation (#2876)
Consider only pull request events when running public-symbols-check.
1 parent 08def3e commit 97c3664

File tree

1 file changed

+1
-1
lines changed
  • .github/workflows/generate_workflows_lib/src/generate_workflows_lib

1 file changed

+1
-1
lines changed

Diff for: .github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
{%- if job_data == "public-symbols-check" %}
2929
if: |
3030
!contains(github.event.pull_request.labels.*.name, 'Approve Public API check')
31-
&& github.actor != 'opentelemetrybot'
31+
&& github.actor != 'opentelemetrybot' && github.event_name == 'pull_request'
3232
{%- endif %}
3333
steps:
3434
- name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}

0 commit comments

Comments
 (0)