CI: Add check for dirty git state & fix dirty state
This appends a check for dirty git state to the CI. So that every commit would be checked.
Bug: T291514
How to register an account on GitLab. To prevent spam, new accounts are locked until approved by an admin or the approver bot. You can also file an unlock request to expedite access.
Support: mw:GitLab, how to host a project on GitLab, #wikimedia-gitlab on libera.chat, #GitLab on Phabricator.
This appends a check for dirty git state to the CI. So that every commit would be checked.
Bug: T291514