From a78fd9bcb55278381b4d169b08fe571116172b63 Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Fri, 8 Nov 2024 11:01:44 -0800 Subject: [PATCH] genereate --- .../src/generate_workflows_lib/misc.yml.j2 | 8 ++++++-- .github/workflows/misc_0.yml | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) 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 adf6062ec6..add97c645a 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 @@ -10,7 +10,7 @@ on: pull_request: env: - CORE_REPO_SHA: b9240e73fb4a5c493a753cc9baa865e2d9a817a3 + CORE_REPO_SHA: main CONTRIB_REPO_SHA: main PIP_EXISTS_ACTION: w @@ -23,13 +23,17 @@ jobs: {%- if job_data == "generate-workflows" %} if: | !contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows') - && github.actor != 'opentelemetrybot' && github.event_name == 'pull_request' + && github.event.pull_request.user.login != 'opentelemetrybot' && github.event_name == 'pull_request' {%- endif %} {%- if job_data == "public-symbols-check" %} if: | !contains(github.event.pull_request.labels.*.name, 'Approve Public API check') && github.actor != 'opentelemetrybot' && github.event_name == 'pull_request' {%- endif %} + {%- if job_data == "docs" %} + if: | + github.event.pull_request.user.login != 'opentelemetrybot' && github.event_name == 'pull_request' + {%- endif %} steps: - name: Checkout repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %} uses: actions/checkout@v4 diff --git a/.github/workflows/misc_0.yml b/.github/workflows/misc_0.yml index c16bf4ef3a..4ed648b972 100644 --- a/.github/workflows/misc_0.yml +++ b/.github/workflows/misc_0.yml @@ -55,6 +55,8 @@ jobs: docs: name: docs runs-on: ubuntu-latest + if: | + github.event.pull_request.user.login != 'opentelemetrybot' && github.event_name == 'pull_request' steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -96,7 +98,7 @@ jobs: runs-on: ubuntu-latest if: | !contains(github.event.pull_request.labels.*.name, 'Skip generate-workflows') - && github.actor != 'opentelemetrybot' && github.event_name == 'pull_request' + && github.event.pull_request.user.login != 'opentelemetrybot' && github.event_name == 'pull_request' steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4