If a project ist configured to spawn CI runners for tests or deployment when pushing to the Repo, a habit of pushing WIP commits regularly may conflict with that.
Here are two solutions that allow you to keep pushing whenever you feel like it.
Special commit message
To skip a CI run, simply add [ci skip]
or [skip ci]
to your commit message. Example:
git commit -m "wip authentication [ci skip]"
Git push options (GitLab)
In addition to that, GitLab CI supports Git push options. Instead of changing your commit message, specify the ci.skip
option when pushing. Example:
git commit -m "wip authentication"
git push -o ci.skip
Documentation
- GitHub Actions: https://docs.github.com/en/actions/guides/about-continuous-integration#skipping-workflow-runs Show archive.org snapshot
- GitLab CI: https://docs.gitlab.com/ee/ci/pipelines/#skip-a-pipeline Show archive.org snapshot
- Travis CI: https://docs.travis-ci.com/user/customizing-the-build#skipping-a-build Show archive.org snapshot
See also:
Posted by Arne Hartherz to makandra dev (2021-04-14 09:03)