]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
CI: allow skipping BrowserStack (#31878)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 26 Oct 2020 18:55:51 +0000 (20:55 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Tue, 27 Oct 2020 10:11:01 +0000 (12:11 +0200)
This basically brings back the previous behavior we had on Travis CI, where if the commit message included `[ci skip]`, BrowserStack tests didn't run.

Additionally, this allows skipping BrowserStack if the commit message contains `[skip ci]` too.

.github/workflows/browserstack.yml

index f709b98da4f689a63ef21bb6f878d6ca8e4a39f4..c6c29dba1d60f28b885f25b22ad96092ac58a87e 100644 (file)
@@ -7,7 +7,7 @@ env:
 jobs:
   browserstack:
     runs-on: ubuntu-latest
-    if: github.repository == 'twbs/bootstrap'
+    if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
 
     steps:
       - name: Clone repository