Provide way to force CI run

Usually we only run CI on master or on pull requests that are based on
master, but this adds a way to bypass this check for specific commits.
If you add "[ci run]" or "[run ci]" to a commit then this will force a
build on a branch, even if there is no PR for it.
This commit is contained in:
Elliot Winkler 2020-08-23 22:02:53 -06:00
parent 4dab96cdb1
commit bf1f986b20
1 changed files with 1 additions and 3 deletions

View File

@ -38,6 +38,4 @@ before_install:
- gem install bundler -v '< 2' --no-document
install: "bundle install --jobs=3 --retry=3"
script: "bundle exec rake"
branches:
only:
- master
if: branch = master OR commit_message =~ /\[ci run\]/ OR commit_message =~ /\[run ci\]/