[ci] cancel previous jobs for pull requests (#958)

* cancel previous jobs for pull requests

In short, this cancels previous jobs for PRs but not for the `master` branch.

* empty for testing

* fix

* empty for testing
2 files changed