From 97c3664fd72681348293caa23e1e96d47934ef07 Mon Sep 17 00:00:00 2001 From: Riccardo Magliocchetti Date: Thu, 19 Sep 2024 10:00:22 +0200 Subject: [PATCH] Fix public-symbols-check workflow generation (#2876) Consider only pull request events when running public-symbols-check. --- .../src/generate_workflows_lib/misc.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 index 2b0735b432..87f726b587 100644 --- a/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 +++ b/.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2 @@ -28,7 +28,7 @@ jobs: {%- if job_data == "public-symbols-check" %} if: | !contains(github.event.pull_request.labels.*.name, 'Approve Public API check') - && github.actor != 'opentelemetrybot' + && github.actor != 'opentelemetrybot' && github.event_name == 'pull_request' {%- endif %} steps: - name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %}