Skip to content

Commit 161acbb

Browse files
authored
Skip generate-workflows when triggered by push (#2836)
Fixes #2835
1 parent b0129ac commit 161acbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/generate_workflows_lib/src/generate_workflows_lib/misc.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
{%- if job_data == "generate-workflows" %}
2424
if: |
2525
!contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows')
26-
&& github.actor != 'opentelemetrybot'
26+
&& github.actor != 'opentelemetrybot' && github.event_name == 'pull_request'
2727
{%- endif %}
2828
{%- if job_data == "public-symbols-check" %}
2929
if: |

.github/workflows/misc_0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
runs-on: ubuntu-latest
9797
if: |
9898
!contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows')
99-
&& github.actor != 'opentelemetrybot'
99+
&& github.actor != 'opentelemetrybot' && github.event_name == 'pull_request'
100100
steps:
101101
- name: Checkout repo @ SHA - ${{ github.sha }}
102102
uses: actions/checkout@v4

0 commit comments

Comments
 (0)