Skip to content

.github/checks: Conditionally skip all checks#3204

Merged
gastmaier merged 1 commit intocifrom
ci-skip-checks
Mar 25, 2026
Merged

.github/checks: Conditionally skip all checks#3204
gastmaier merged 1 commit intocifrom
ci-skip-checks

Conversation

@gastmaier
Copy link
Copy Markdown
Collaborator

@gastmaier gastmaier commented Mar 25, 2026

PR Description

If event is pull_request and checkout_fallback is true, skip all checks. checkout_fallback is true for event pull_request when the fetch_depth is higher than 1000, indicating a backport/merge commit of a upstream patch. We need to check if is a pull_request, because, checkout_fallback is set to true for push force and push new branches.

Alt solution:
use $fetch_depth to , for each method of ./build.sh, skip or not based on limits.

e.g. coccicheck > 1000 -> 15hr, okay, not worth.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

If event is pull_request and checkout_fallback is true, skip all checks.
checkout_fallback is true for event pull_request when the fetch_depth is
higher than 1000, indicating a backport/merge commit of a upstream
patch. We need to check if is a pull_request, because, checkout_fallback
is set to true for push force and push new branches.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@gastmaier gastmaier merged commit cdb5e36 into ci Mar 25, 2026
1 check passed
@gastmaier gastmaier deleted the ci-skip-checks branch March 25, 2026 16:07
github-actions bot pushed a commit that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant