Skip to content

Fix/check links workflow condition#4978

Open
Manvi2402 wants to merge 5 commits intoopen-telemetry:mainfrom
Manvi2402:fix/check-links-workflow-condition
Open

Fix/check links workflow condition#4978
Manvi2402 wants to merge 5 commits intoopen-telemetry:mainfrom
Manvi2402:fix/check-links-workflow-condition

Conversation

@Manvi2402
Copy link

@Manvi2402 Manvi2402 commented Mar 13, 2026

Description

Improves the check-links CI workflow by:

  • Adding path filters to run only when markdown
    files are changed
  • Replacing custom changed-files logic with
    tj-actions/changed-files@v46
  • Adding concurrency settings to cancel duplicate runs
  • Upgrading actions/checkout from v4 to v6
  • Adding timeout-minutes

Fixes #4943

Type of change

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Workflow changes reviewed against existing CI configuration.
Based on the approach from #4968 by @emdneto

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • [x ] No.

Checklist:

  • Followed the style guidelines of this project
  • [ x] Changelogs have been updated
  • Unit tests have been added(N/A for workflow changes)
  • Documentation has been updated(N/A for workflow changes)

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 13, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@@ -3,45 +3,45 @@ on:
push:
branches: [ main ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should we add paths to on push as well?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add paths to push as well to keep it consistent.

uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need to fetch the entire history now that we are using tj-actions/changed-files?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right! Since we're now using tj-actions/changed-files, fetch-depth: 0 is no longer needed. I'll remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

check-links workflow warnings

2 participants