]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
CI: limit the on push triggers (#35574)
authorXhmikosR <xhmikosr@gmail.com>
Fri, 16 Dec 2022 07:22:18 +0000 (09:22 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Dec 2022 07:22:18 +0000 (09:22 +0200)
Since now we have workflow_dispatch, we can trigger a workflow manually in case we don't have an open PR.

Also, remove the custom `ci skip` code; it's supported natively for some time now: https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/

.github/workflows/browserstack.yml
.github/workflows/bundlewatch.yml
.github/workflows/cspell.yml
.github/workflows/css.yml
.github/workflows/docs.yml
.github/workflows/js.yml
.github/workflows/lint.yml
.github/workflows/node-sass.yml

index 9a2fc91e56c3e7444c4aa4e85da8f175d5de172a..2a10dfc9ddca4b338297589222517affb75a3555 100644 (file)
@@ -2,6 +2,11 @@ name: BrowserStack
 
 on:
   push:
+    branches:
+      - main
+  pull_request:
+    branches:
+      - main
   workflow_dispatch:
 
 env:
@@ -14,7 +19,7 @@ permissions:
 jobs:
   browserstack:
     runs-on: ubuntu-latest
-    if: github.repository == 'twbs/bootstrap' && (!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]'))
+    if: github.repository == 'twbs/bootstrap'
     timeout-minutes: 30
 
     steps:
index 2add86c49bc57212bcc994ac8d4b1d38544a7e51..c02a37ed94338a58ab5877647618169bd6bccc80 100644 (file)
@@ -2,8 +2,8 @@ name: Bundlewatch
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index 1d946981c66426b0cdc72e8f8d64f638fb0471ce..11788e3cc4ba74f9daf867161d2a4758a8c0e66b 100644 (file)
@@ -2,8 +2,8 @@ name: cspell
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index 6bfde50af3dd1b6827d10584072f1f4dd5733fff..3ad8fef93eb05ad5ac78824ff3385809a6e67229 100644 (file)
@@ -2,8 +2,8 @@ name: CSS
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index bdeae6043da42a26be139327fee6fa7d3440fb27..2a684f61823847dea8053c0b1c0c4cff3c9e302f 100644 (file)
@@ -2,8 +2,8 @@ name: Docs
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index a8994b6cc3b15760f0f23915d05a5a5f8522171f..8dd5e2a107a71afe60f513be7c8233fe7e79c7b5 100644 (file)
@@ -2,8 +2,8 @@ name: JS Tests
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index 51ee189995735402e1179dfef75419867ee5aa06..fd62b418b208c69229749dcc073ecca830ca3334 100644 (file)
@@ -2,8 +2,8 @@ name: Lint
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch:
 
index dc687ca46b52b3af2e58771b7a75ac2707ddbb2e..fb4d4944c03fcd1171d8dfb2b3b4920200066d6b 100644 (file)
@@ -2,8 +2,8 @@ name: CSS (node-sass)
 
 on:
   push:
-    branches-ignore:
-      - "dependabot/**"
+    branches:
+      - main
   pull_request:
   workflow_dispatch: