-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Don't run build and test if only docs changed #24530
Conversation
Seems fine with me, but I'm not sure how the "required checks" will work if we skip the required checks. |
Ah, yes. Gitea actions will also encounter this like problem. |
Relevant documentation page: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/troubleshooting-required-status-checks#handling-skipped-but-required-checks |
test-pgsql: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "No build required"' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra '
at the end of this line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few minor things
* giteaofficial/main: Fix WEBP image copying (go-gitea#24743) Reorganize CSS files (go-gitea#24739) Don't run build and test if only docs changed (go-gitea#24530) [skip ci] Updated translations via Crowdin Rework Oauth login buttons, swap github logo to monocolor (go-gitea#24740) Implement systemd-notify protocol (go-gitea#21151) Bump vm2 from 3.9.17 to 3.9.18 (go-gitea#24742) Refactor Pull Mirror and fix out-of-sync bugs (go-gitea#24732) Unification of registration fields order (go-gitea#24737) Switch to `@eslint-community/eslint-comments` (go-gitea#24736) Docs for creating a user to run Gitea on Fedora/RHEL/CentOS (go-gitea#24725)
Check #24757 |
This has some kind of regression where docs build no longer runs for PRs: PR build was skipped with "No build required" introduced from this PR: https://github.com/go-gitea/gitea/actions/runs/5039932080/jobs/9038389389 It subsequently failed on main when landed and the docs build actually ran: https://github.com/go-gitea/gitea/actions/runs/5040058905/jobs/9038577074 |
IDK, this whole config seems far too complex to me, I won't debug any further. Why do we even have actions that do nothing? What is the point of them? Do they override same-named actions? |
@lunny revert this? It obviously wasn't tested enough, and I'd rather run too many actions than too few. |
We can't test it unless we merge it. I think the problem is at |
Besides it not working, there is more wrong with this PR:
So I would still go for a clean revert. BTW, in theory you can test locally with https://github.com/nektos/act. |
The change is based on #24530 (comment) |
Seems like a huge hack. I'm surprised GH docs even recommend it. Maybe it could still be one workflows and the skip condition could be determined via a shell script instead. |
https://github.com/dorny/paths-filter or similar might be better solutions. |
Inspired by #24530 (comment) This PR use a file filter action to do different CI jobs according changed files types. All types are defined in `.github/file-filters.yml`. Now there are 4 types, `docs`, `backend`, `frontend` and `build`. Then if a PR only changed docs files, those CI jobs which passed the conditions will run, and other types are also like this. --------- Co-authored-by: silverwind <me@silverwind.io>
As title.
But maybe it's affected by actions/runner#2324