-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: doc: restore tj-actions/changed-files to only build docs when doc files are changed #87153
Conversation
d636951
to
043348e
Compare
Thanks for coming up with a fix so quickly already, I was about to start crafting one up as well. |
7924f2e
to
09caebb
Compare
good question - @nashif? |
mmh going back to draft - I think @str4t0m comment very much applies. If no "doc" file is touched then the workflow will not report an OK status causing PR to not be considered mergeable. Need to look more closely -- luckily we have a fix already deployed in main anyway |
probably we want to revert to the old state of things and use the same action as before, the way it was done solved many issues. |
ok, maybe I should have gone into the details, the problem here is that we want this check to pass, if the workflow is skipped because it does not match files, then GH will not allow PRs to be merged because it never got to running the workflow. |
09caebb
to
1c1726d
Compare
This reverts commit b805266 and restores the original use of looking for changed files before triggering a documentation build. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Following the revert in the previous commit, pin the actions/checkout action to align with what is now the accepted practice in the project. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Ensure we run the latest version of this action (and align with what is already used for bsim-tests) Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
There is no need to trigger a doc build when tests are being changed. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Building docs just works on vanilla GH runner so it can be convenient to not prevent the workflow to run on forks. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1c1726d
to
fc93231
Compare
Restore the use of tj-actions/changed-files action + related housekeeping.