From 43804f372149b2b7bafd90c880ecaee909d5ec3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Em=C3=ADdio=20Neto?= <9735060+emdneto@users.noreply.github.com> Date: Wed, 6 Nov 2024 18:05:34 -0300 Subject: [PATCH] fix workflows (#4256) * fix workflows Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> * remove changelog line since it's working Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> --------- Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com> --- .github/workflows/check-links.yml | 3 +-- .github/workflows/lint_0.yml | 2 +- .github/workflows/misc_0.yml | 4 +++- tox.ini | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 770bd24168..9092cbaf78 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -23,7 +23,6 @@ jobs: check-links: runs-on: ubuntu-latest needs: changedfiles - if: if: | github.event.pull_request.user.login != 'opentelemetrybot' && github.event_name == 'pull_request' && ${{needs.changedfiles.outputs.md}} @@ -34,7 +33,7 @@ jobs: fetch-depth: 0 - name: Install markdown-link-check - run: npm install -g markdown-link-check + run: npm install -g markdown-link-check@v3.12.2 - name: Run markdown-link-check run: | diff --git a/.github/workflows/lint_0.yml b/.github/workflows/lint_0.yml index cd3cd7bda1..71b148c02d 100644 --- a/.github/workflows/lint_0.yml +++ b/.github/workflows/lint_0.yml @@ -11,7 +11,7 @@ on: env: CORE_REPO_SHA: main - CONTRIB_REPO_SHA: be0c78c8c11d05787edb53104c92a3a959f6a70c + CONTRIB_REPO_SHA: main PIP_EXISTS_ACTION: w jobs: diff --git a/.github/workflows/misc_0.yml b/.github/workflows/misc_0.yml index 3e8aa7cf1b..e816656b8d 100644 --- a/.github/workflows/misc_0.yml +++ b/.github/workflows/misc_0.yml @@ -11,7 +11,7 @@ on: env: CORE_REPO_SHA: main - CONTRIB_REPO_SHA: be0c78c8c11d05787edb53104c92a3a959f6a70c + CONTRIB_REPO_SHA: main PIP_EXISTS_ACTION: w jobs: @@ -109,6 +109,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 diff --git a/tox.ini b/tox.ini index 49e2fc7710..3e92195f9d 100644 --- a/tox.ini +++ b/tox.ini @@ -334,6 +334,7 @@ commands = python {toxinidir}/scripts/public_symbols_checker.py [testenv:generate-workflows] +recreate = True deps = {env:CONTRIB_REPO}\#egg=generate_workflows_lib&subdirectory=.github/workflows/generate_workflows_lib commands =